How to insert single colon xml text in the xml table

Dear Sir,
how to insert special characters like single colon text example (don't) xml text in to the xml table
please see the following example its giving me error quoted string is not ended properly
SQL> insert into ftr_ctl values (1,
2 xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.oracle.com/FC.xsd
5 http://www.oracle.com/FC.xsd">
6 <row>
7 <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
8 <AlphaCode>ZB032</AlphaCode>
9 <Name>Baseline Point</Name>
10 <Status>Submitted</Status>
11 <Definition>A location that serves as a point on, and which partially defines a segment
of, a national boundary baseline.</Definition>
12 <Description>May be monumented or unmonumented. A national boundary baseline is used fo
r defining the landward edge or margin of a nation's various contiguous zones such as the 3 and 12 n
autical mile limits and the Exclusive Economic Zone (EEZ).</Description>
13 </row>
14 </po:root>'));
ERROR:
ORA-01756: quoted string not properly terminated
how to solve single quotation like (nation's) in xml data insertion
please give me reply as soon as possible
Thanks
Kabeer

Hi,
Use &#x7B;code} tags to post formatted code on the forum.
That way, your code will be more readable for everyone, and more importantly here, everyone will be able to clearly see what's bothering you :
&apos;sThe single quote was encoded with the character entity reference "&amp;apos;".
The conversion is not mandatory but it happens Oracle is doing it in this case.
It shouldn't be a problem though.
If you want to extract the value afterwards, it'll come as expected :
SQL> create table ftr_ctl (id number, doc xmltype);
Table created
SQL> insert into ftr_ctl values (1,
  2  xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
  3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4  xsi:schemaLocation="http://www.oracle.com/FC.xsd
  5  http://www.oracle.com/FC.xsd">
  6  <row>
  7  <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
  8  <AlphaCode>ZB032</AlphaCode>
  9  <Name>Baseline Point</Name>
10  <Status>Submitted</Status>
11  <Definition>A location that serves as a point on, and which partially defines a segment of, a national boundary baseline.</Definition>
12  <Description>May be monumented or unmonumented. A national boundary baseline is used for defining the landward edge or margin of a nation''s various contiguous zones such as the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).</Description>
13  <Alias xsi:nil="true"></Alias>
14  <SourceItemIdentifier>100565</SourceItemIdentifier>
15  <SourceReference>DGIWG DFDD BL 2011-1.00</SourceReference>
16  <SourceURL>https://www.dgiwg.org/FAD/fdd/view?i=100565</SourceURL>
17  </row>
18  </po:root>'));
1 row inserted
SQL> select extractvalue(doc, '/po:root/row/Description','xmlns:po="http://www.oracle.com/FC.xsd"')
  2  from ftr_ctl
  3  where id = 1
  4  ;
EXTRACTVALUE(DOC,'/PO:ROOT/ROW/DESCRIPTION','XMLNS:PO="HTTP://WWW.ORACLE.COM/FC.
May be monumented or unmonumented. A national boundary baseline is used for defi
ning the landward edge or margin of a nation's various contiguous zones such as
the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to insert ur own documentaion text from harddisk to sapscript

    how to insert ur own documentaion text from harddisk to sapscript

    You should upload this standard text to SO10,  then you can simply include it into your sapscript.
    Regards,
    RIch Heilman

  • How user can get a Sales Text for the any Line Item in the Billing?

    Salute Masters ! !
    How user can get a Sales Text for the any Line Item in the Billing?
    It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
    Where I can configure in system for all.
    Rgds
    Srivastav
    09973504950

    Hi,
    Sales text can be copied from customer to order , order to delivery and delivery to billing .
    Check the T-code : VOTXN , do the customization as per your requirement.
    check the below link :
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm

  • *Urgent*How to insert data from MS SQL to the table that create at the adobe form?

    Hi,
    I'm using Adobe life cycle designer 8 to do my interactive form. I would like to ask how to insert data from MS SQL to the table that i have created in my adobe interactive form?
    I really need the information ASAP as i need to hand in my project by next week... i really appreciate any one who reply this post.
    Thanks

    Tou need to do a couple of things
    1. On the Essbase server, set up an odbc system connection to your MySQL database
    2. In the load rule , go to the file menu and select open SQL data source and in the data source put in your SQL statement . A couple of hints. Where it says Select, don't put in the word select and where it say from don't put in from. The system adds them for you. The easiest way ti enter a SQL statement is to do it all in the select area So if your SQL would normanlly say select * from mytable just enter the code as * from mytable in the select area
    The click ol/retrieve and enter in your connection info. Itshould bring data back into the load rule. Save the load rule and use it

  • My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    My friend has an iPhone but doesn't use iMessage. How can I send her regular texts with the new iOS 7 update?

    That's because her phone is recognized in the Apple database as an iPhone.  It should eventually convert to SMS but that's above my level of expertise here so hopefully someone else can come along and help you further.  She could just turn on iMessage and solve the problem. Ha!
    Good luck!

  • How  and where does SAP standard programs update the master tables...

    Hello there,
    How  and where does SAP standard programs update the master tables...
    to be precise.. if a (any) transaction occurs  the programs behind it holds the data in temporary structures.
    where and when does it get updated in the master table.
    can anyone tell me how it happens?
    I Know that from the where used list one can find the corresponding table but most of the time it wont suffice
    I am expecting a proper answer.
    Santosh B

    Hello Santosh,
    you need to do some self-reading on the following topic
    Updates in the SAP System (BC-CST-UP)
    http://help.sap.com/saphelp_47x200/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/frameset.htm
    Regards,
    Siddhesh

  • How can i creat CRC 32 CHECK WITH THE lookup table as attached.

    how can i creat CRC 32 CHECK WITH THE lookup table.attached
    i creat one,but not match the result number C++ version
    result number C++ version:
    FE 00 18 02 40 1E 65 43 00 03 E8        CRC32=>78 1F E9 06
    FE 01 18 02 40 1E 65 43 00 03 E8        CRC32=>F8 8F 49 61
    FE 02 18 02 40 1E 65 43 00 03 E8        CRC32=>7D FF B4 7F

    due to some reason i can not attach the table.but you can find it herehttp://lavag.org/topic/15325-crc32/,it in the CRC.llb 84.03K =>CRC-32 Table.ctl thanks a lot

  • How to insert single quote in to the table

    Pl help me out in how to insert the single quote ie ' into the table. If there is no other way, i will go for some other alternative
    Regards,
    Basavaraju

    SQL> desc varchar2_test
    Name                                      Null?    Type
    TEXT                                               VARCHAR2(4000)
    SQL> insert into varchar2_test values ('''ABCDEFGHIJ''');
    1 row created.
    SQL> select * from varchar2_test;
    TEXT
    'ABCDEFGHIJ'Thanks,
    BB

  • How to insert an image into text area?

    Hi everybody,
    I have a proplem : insert an image into text area ( likely Yahoo Chat)
    eg : Hello,World :D =)) :x
    I can't do it.
    Can you help me?
    Thank you!
    Edited by: Chelsea_Drogba7589 on May 28, 2010 9:28 PM

    StanislavL wrote:
    [http://java-sl.com/tip_autoreplace_smiles.html]
    Neat example. :)
    Try this.I did and was at first confused because I expected the code to arrive on-screen looking like the screen-shot at the page. Then it occured to me to type some text including a smiley, and it changed to the icon as expected.
    For other people like me who are not quite very clever, how about adding an 'Instructions' section, or initializing the JEP with instructions?
    BTW -
    "The screenshot shows how it looks like:" reads better as..
    "The screenshot shows how it looks:"

  • How to Insert Image in XML publisher Report

    Hi Forum,
    I have created rtf file for xml report and in this i inserted one Image. When run the request from apps environment and while checking the output in excel format, Image is not displaying..
    Please advice me.
    Thanks & Regards,
    Nag.CH

    Hi;
    What is your EBS and Os?
    Please check below note:
    Image Does Not Display In XML Publisher Excel Output [ID 736897.1]
    Regard
    Helios

  • How to insert single quotation marks

    Hi folks!
    I'm having problem with inserting single quotation marks (').
    I know this could be easily solved but I'm not sure what the best solution is.
    Example
    updatePackingMethod("That's it");
    will throw a sql exception:
    Syntax error (missing operator) in query expression ''that's it'
    my function is written like this
    public boolean updatePackingMethod(String packName, int id){
    String sql="Update PackMethod set PackMethodName='"+packName+"' where Id ="+ id;
    try {
    Statement stmt=conn.createStatement();
    int result=stmt.executeUpdate(sql);
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    return false;
    Any?
    /Filip

    public boolean updatePackingMethod(String packName, int id){
    String sql=" Update PackMethod set PackMethodName= ? where Id = ? ";
    PreparedStatement pstmt = null;
    try {
    pstmt = conn.prepareStatement( sql );
    // pstmt.setXXX( index, paramValue );
    // where XXX is datatype of parameter
    // index is the Nth ? (question mark) in the sql
    // paramValue is the value to be used instead of ?
    pstmt.setString( 1, packName );
    pstmt.setInt( 2, id );
    int result=pstmt.executeUpdate( );
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    } finally {
    if( pstmt != null ) pstmt.close();
    return false;

  • How to import data from a text file into a table

    Hello,
    I need help with importing data from a .csv file with comma delimiter into a table.
    I've been struggling to figure out how to use the "Import from Files" wizard in Oracle 10g web-base Enterprise Manager.
    I have not been able to find a simple instruction on how to use the Wizard.
    I have looked at the Oracle Database Utilities - Overview of Oracle Data Pump and the Help on the "Import: Files" page.
    Neither one gave me enough instruction to be able to do the import successfully.
    Using the "Import from file" wizard, I created a Directory Object using the Create Directory Object button. I Copied the file from which i needed to import the data into the Operating System Directory i had defined in the Create Directory Object page. I chose "Entire files" for the Import type.
    Step 1 of 4 is the "Import:Re-Mapping" page, I have no idea what i need to do on this page. All i know i am not tying to import data that was in one schema into a different schema and I am not importing data that was in one tablespace into a different tablespace and i am not R-Mapping datafiles either. I am importing data from a csv file.
    For step 2 of 4, "Import:Options" page, I selected the same directory object i had created.
    For step 3 of 4, I entered a job name and a description and selected Start Immediately option.
    What i noticed going through the wizard, the wizard never asked into which table do i want to import the data.
    I submitted the job and I got ORA-31619 invalid dump file error.
    I was sure that the wizard was going to fail when it never asked me into which table do i want to import the data.
    I tried to use the "imp" utility in command-line window.
    After I entered (imp), i was prompted for the username and the password and then the buffer size as soon as i entered the min buffer size I got the following error and the import was terminated:
    C:\>imp
    Import: Release 10.1.0.2.0 - Production on Fri Jul 9 12:56:11 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Username: user1
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Import file: EXPDAT.DMP > c:\securParms\securParms.csv
    Enter insert buffer size (minimum is 8192) 30720> 8192
    IMP-00037: Character set marker unknown
    IMP-00000: Import terminated unsuccessfully
    Please show me the easiest way to import a text file into a table. How complex could it be to do a simple import into a table using a text file?
    We are testing our application against both an Oracle database and a MSSQLServer 2000 database.
    I was able to import the data into a table in MSSQLServer database and I can say that anybody with no experience could easily do an export/import in MSSQLServer 2000.
    I appreciate if someone could show me how to the import from a file into a table!
    Thanks,
    Mitra

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to insert a dialog box which prompt the user enter the general information in the SDI application?

    Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.

    Hi Lee,
    The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
    Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
    The code snipped bellow can be more helpfull:
    BOOL CSDIApp::InitInstance()
    AfxEnableControlContainer();
    // Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);
    //prompt user for data
    CUserInfo dlg;
    if (dlg.DoModal() == IDOK)
    //do something here with the data
    else
    return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
    // Dispatch commands specified on the command line
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;
    // The one and only window has been initialized, so show and update it.
    m_pMainWnd->ShowWindow(SW_SHOW);
    m_pMainWnd->UpdateWindow();
    return TRUE;
    Hope this helps,
    Silvius
    Silvius Iancu

  • How to insert system date in Session of the page

    Greetings,
    I am stuck at one thing and need guidline.
    I created date parameter "From Date" - "to Date" . Item Type Date Picker.
    - Set Default Value : Sysdate;
    - Default Value Type : PL/SQL Expression.
    When i run the page it shows current date , but when i see session state report of that page there Item Value is Empty and Status is also Empty.
    The result in impact is that i created linked on data that displays, That link doesnt Work because of Item Value is Empty and Status is also Empty.
    Kindly guide how i inserted value in Item Value and in status.
    Pls

    Hi,
    >
    I am stuck at one thing and need guidline.
    I created date parameter "From Date" - "to Date" . Item Type Date Picker.
    - Set Default Value : Sysdate;
    - Default Value Type : PL/SQL Expression.
    When i run the page it shows current date , but when i see session state report of that page there Item Value is Empty and Status is also Empty.
    The result in impact is that i created linked on data that displays, That link doesnt Work because of Item Value is Empty and Status is also Empty.
    Kindly guide how i inserted value in Item Value and in status.
    >
    When you set the value of an item in the source, the value is set in the HTML DOM not the session state.
    To set value in session state use Computation or Process.
    Cheers,

  • How to fetch Positon and Job text for the employee

    Hi all,
    How can I fetch the Postion and Job text from the infotype HRP1001 contains in last fields.
    When I'm picking it takes from the last latest record, but in PA30 picks the next to the latest records some times.
    Please help me in this.
    Thank you!
    Prasad

    Hi,
    You can use standard function:
    With object id got from infotype 1001 (sobid) u can fetch descriptiosn from infotype 1000.
    data: ti_i1000 LIKE p1000 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'RH_READ_INFTY_1000'
          EXPORTING
            plvar            = '01'                   " Version plan usually 01
            otype           = 'C'                     " C = Funcion, S = Position
            objid            = p_objid              " Object ID function or position
            begda          = p_begda
            endda            = p_endda
          TABLES
            i1000            =  ti_i1000        " Inoftype 1000 structure
          EXCEPTIONS
            nothing_found    = 1
            wrong_condition  = 2
            wrong_parameters = 3
            OTHERS           = 4.
    Then you can use field ti_i1000-stext.
    Hope this helps.
    Daniel
    Edited by: Daniel Siñani Cardenas on Jun 30, 2009 11:05 PM

Maybe you are looking for

  • Calling Web Service with SOAP header from BPEL

    Hi, I am calling a web service (with header information) from BPEL. In the Invoke activity, i created a header variable to pass the header information. But, when i test the BPEL service, invoke activity fails because the header information is not bei

  • Mathscript Array

    Hello, I wanna use the counter in my While Loop to acces the values of my vector/array inside the Mathscript. However, I get this message error: "Error -90026 occurred at Error in function V at line 1:  The indexes for a matrix indexing operation mus

  • Error 1097 when calling void **

    I am trying to setup an x-ray camera that I bought from Sens-Tech. The camera comes with an API called xapi. I have been able to use the camera in c and c++ successfully. I now want to implement the same code in labview. Most of the vi that I have bu

  • Have imac osx 10.6.8  with 2 gb 667 mhz ddr2 sdram. Can I get more ram and a good video card to use CS6 Premiere Pro

    I'd like to upgrade with more ram and a proper video card to properly use Adobe Premiere Pro CS6. I have an imac version 10.6.8  Can I boost this mac. Hardware Overview:   Model Name:          iMac   Model Identifier:          iMac5,2   Processor Nam

  • 2.1 Drag and Drop

    I swear I remember previous versions of SqlDeveloper generating Select statements when I drag table names from the connection navigator to a worksheet. Now I get nothing. I checked the preference settings to make sure it wasn't disabled somehow. Pref