Unable to parse the XML because of malformed UTF-8

When parsing a string xml (not a file!) I have a malfromed exception UTF-8. This is due to the fact that there are accents in (oau), but the chain says it utf-8 format. These umlauts or even some Chinese characters are allowed by the xml specification.

You have an idea on how to make this work? the problem is that I can't just replace the characters with something else since I have to support any language.

Sring xml ="" my name: oauRed535.

DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();

DocumentBuilder builder = factory.newDocumentBuilder ();

InputStream inputStream = new ByteArrayInputStream (xml.getBytes ());

Document document = builder.parse (inputStream);

Exception message when you call parse: Malformed UTF-8

Any help welcome,

Thank you

Is the point of this item:

my name: oau

to test the transformation of accented characters?

In any case, I'll try:

xml.getBytes("UTF-8")

to make sure that your string is encoded using UTF-8 and not ISO-8859-1 which is the default.

Tags: BlackBerry Developers

Similar Questions

  • I have an iPhone 6s smart box, but I am unable to connect the headset because it is not long enough.  Is there any adapter that I can use?

    I have an iPhone 6s smart box, but I am unable to connect the headset because it is not long enough.  Is there any adapter that I can use?

    alias-research-http://www.Amazon.com/s?ie=UTF8&x=0&ref_=nb_sb_ss_i_8_11&y=0&field-keywords=IPhO does % 20headphone % 20adapter & url = % 3Daps & sprefix = 20head % iphone

  • How to parse the XML from the server BB10 Cascades development

    Hi all

    I'm new to BB10 development.

    I made the connection with my server that sends data to the XML Format. How to analyze.  Can someone help me with this.

    Also how to store data analysed in the Global Variable or ArrayList.

    Concerning

    Stephenson

    I thought you wanted to do stunts (qml).
    I use Qt

    QByteArray data = currentReply->readAll();
    xml.addData(data); //xml is a QXmlStreamReader
    

    to parse the xml, it is pretty simple if you look at the API.

    Here is a snippet of my code:

    while (!xml.atEnd()) {
        xml.readNext();
        /** start of an element **/
        if (xml.isStartElement()) {
            currentTag = xml.name().toString();
            if (xml.name() == "version") {
    

    the feed reader goes hierarchically, so you can simply call routines to analyze the different parts of the xml if the name() corresponds to a certain value.

  • I bought the Adobe Acrobat Standard XI and is unable to complete the download because I already downloanded Acrobat XI pro trial.

    I bought the Adobe Acrobat Standard XI and is unable to complete the download because I already downloanded Acrobat XI pro trial.

    Log, activation, or connection errors. CS5.5 and later versions

    Mylenium

  • How can I parse the XML file using the Oracle's Sql query.

    Hi all
    I have an XML file that must analyze and display the result according to the following example
    Can you please recommend me an approach to get the result.

    For example, here is my XML:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xmlns:pi = "urn:com.workday / picof pi: Extract_Employees" >
    < IP: employee >
    < Additional_Information: pi > < pi: pi function: PriorValue = "" > Intern - masteri¿½s < / pi: function >
    < / pi: Additional_Information >
    < / pi: employee >
    < / pi: Extract_Employees >

    Databases:

    Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - production

    SQL > SELECT * FROM NLS_DATABASE_PARAMETERS;

    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS.,.
    WE8ISO8859P1 NLS_CHARACTERSET
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI. SSXFF AM
    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    BINARY NLS_COMP
    NLS_LENGTH_SEMANTICS BYTES
    NLS_NCHAR_CONV_EXCP FAKE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.3.0



    The Xml file above with UTF-8 character sets which is multi bytes.

    But in my character database is WE8ISO8859P1 for example ISO-8859-1 (single-byte character set)

    SQL > SELECT extractValue (Value (x) ', ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof ' ')
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))


    which gives the following error:

    Error:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00200: could not convert from UTF-8 encoding to ISO-8859-1
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 295
    ORA-06512: at line 1

    Also I tried with this
    SQL > SELECT convert (extractValue (Value (x), ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof"'),'WE8ISO8859P1 ', 'UTF8'))
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))

    The same error is according to the above error message.

    Please help in this regard.

    Thank you and best regards,
    Sandrine

    You know the code of real character behind "" or you receive the file like that?

    For the record, "" is the wildcard of UTF-8 (0xEFBFBD), so that the original character of the means has already been replaced and that very probably the file was not coded properly in the first place.

    With respect to the resolution of the problem, try another method to read the file:

    SQL> select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
    
    VALUE
    ----------------------------------------
    WE8ISO8859P15
    
    SQL> SELECT x.*
      2  FROM XMLTable(
      3         XMLNamespaces(default 'urn:com.workday/picof')
      4       , '/Extract_Employees/Employee'
      5         passing xmltype(
      6                   dbms_xslprocessor.read2clob(
      7                     'COP_DIR'
      8                   , 'XML_Issue_227176.xml'
      9                   , nls_charset_id('AL32UTF8')
     10                   )
     11                 )
     12         columns job_title varchar2(30) path 'Additional_Information/Job_Title'
     13       ) x
     14  ;
    
    JOB_TITLE
    ------------------------------
    Intern -  Master¿s
     
    
  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • Inability to parse the XML file

    Podcasts connect tells me that it cannot parse the following URL.  You can determine why?  The URL http://www.nudge.online/Protest/Podcasts/hungerstriker.xml

    I followed, as far as possible, the advice provided by PodcastConnect

    Line 18 of your food

    < height > 144 < / height >

    The misspelling has given rise to the 'height' never closed and thus invalidate the rest of the food.

  • RDPCLIP. EXE missing startup file (system32 dir). Unable to restore the system because of missing file unspecified.

    Windows 7 (new machine, not updated). Autoruns shows this file RDPCLIP. EXE be found at startup. This file is usually located in the System32folder. Unable to restore the system of time earlier because of unspecified missing file (rdpclip.exe?). System seems to be runnuing normally except these two questions. Occasional freezes (once just by renaming the downloads folder). How can I get
    new file restored to the version of Windows 7?

    Note: CLIP.exe is in the System32 directory.

    Hi bigdome6984,

    If your machine acts as a Terminal Server, i.e. someone else connects to your computer using remote desktop, then rdpclip.exe will be loaded on your computer as part of the functionality of Server Terminal Server.

    RDSCLIP is loaded on the computer, allowing other machines to connect via Remote Desktop.

    It should be found at the following registry location:

    HKLM\SYSTEM\CurrentControlset\Control\Terminal Server\Wds\rdpwd\StartupPrograms

    Important Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756

    I hope this helps!

    Kind regards
    Gokul - Microsoft Support

  • Need examples of code to parse the xml using kxml2

    Hello world

    I am a beginner for Blackberry, I want to get the data from the xml file. I look and see the section use of kxml2 is a better choice.

    But I can't find an example code for it on the Blackberry.  Can someone share me?

    I open kxml2.jar, I see xmlParser and kxmlParser, whoever I'm use()?

    Anbody can help me contact how to use kxml2 clearly?

    Thank you very much. Sorry for the bad English.

    --------

    Binh - VietNam

    Ah yes, sorry, I assumed automatically kxml to be used with ksoap2.

    kxml is a j2me parser commonly you can find sources in other forums, for example
    http://www.developer.Nokia.com/community/wiki/How_to_parse_an_XML_file_in_Java_ME_with_kXML
    http://j2mesamples.blogspot.com/2009/04/XML-parsing-in-J2ME.html

  • Parse the XML file and extract data

    I want to parse a XML file and get the data as columns.

    Input country.xml file:

    <?xml version="1.0" encoding="UTF-8"?>
    <MAS Action="Insert">
    <Country ObjectId="100000000000000009" VersionId="8"><Id>1</Id><NlTexts><Name Language="de">Land1</Name><Name Language="en">Country1</Name></NlTexts></Country>
    <Country ObjectId="100000000000000033" VersionId="2"><Id>2</Id><NlTexts><Name Language="de">Land2</Name><Name Language="en">Country1</Name></NlTexts></Country>
    </MAS>
    
    

    I would like to analyze the xmlfile to get the following result

    Required result:

    col1        col2           col3
    1            Land1        Country1
    2            Land2        Country2
    

    or alternatively

    col1  col2       
    1            Land1       
    1            Country1
    2            Land2       
    2            Country2
    

    I tried the extract function

    select extract((XMLTYPE(BFILENAME('XML_DAT_DIR', 'country.xml'),
               NLS_CHARSET_ID('AL32UTF8'))) , '/*/*/Id') as "xdata"
    from dual;
    
    xdata
    ------------------------
    <Id>1</Id><Id>2</Id>
    

    and XMLTABLE (but how can I add countries now)

    SELECT *
        FROM XMLTABLE('/*/*/Id'
               PASSING XMLTYPE(BFILENAME('XML_DAT_DIR', 'country.xml'),
               NLS_CHARSET_ID('AL32UTF8'))
           )
      ;
    COLUMN_VALUE
    ------------------------
    <Id>1</Id>
    <Id>2</Id>
    

    DB version 11.2.0.3 on Windows 64-bit

    Thank you

    Tim

    Here are a few examples.

    For your output required:

    SELECT *.

    FROM XMLTable)

    "/ MAS/country".

    from XMLType (bfilename ('TEST_DIR', 'country.xml'), nls_charset_id ('AL32UTF8'))

    number of columns col1 way "Id".

    , col2 varchar2 (30) path "NlTexts/name [1].

    , col3 varchar2 (30) path "NlTexts/name [2]»

    )

    ;

    or, if the Language attribute is significant:

    SELECT *.

    FROM XMLTable)

    "/ MAS/country".

    from XMLType (bfilename ('TEST_DIR', 'country.xml'), nls_charset_id ('AL32UTF8'))

    number of columns col1 way "Id".

    col2 varchar2 (30) path "NlTexts/Name[@Language="de"]"

    col3 varchar2 (30) path "NlTexts/Name[@Language="en"]"

    )

    ;

    For your alternate exit:

    SELECT x1.col1

    x2.col2

    -, x2.col3

    FROM XMLTable)

    "/ MAS/country".

    from XMLType (bfilename ('TEST_DIR', 'country.xml'), nls_charset_id ('AL32UTF8'))

    number of columns col1 way "Id".

    , path of xmltype names ' NlTexts/name '.

    ) x 1

    XMLTable)

    "/ Name".

    in passing x1.names

    path of column col2 varchar2 (30) '.'

    -, col3 to ordinalite

    ) x 2

    ;

    (uncomment col3 to see what he does)

    or in a shorter way:

    SELECT *.

    FROM XMLTable)

    ' for $i/MAS/country

    , $j in $ NlTexts/i/name

    Returns the r element {$i / Id, $j}'

    from XMLType (bfilename ('TEST_DIR', 'country.xml'), nls_charset_id ('AL32UTF8'))

    number of columns col1 way "Id".

    , col2 varchar2 (30) path 'name '.

    ) ;

  • Help in parsing the XML result with ksoap2

    Hi, I have another problem. I used KSOAP2 to call a web service net but when I catch him to display the result with a selectionneret, it shows the following screen:

    reading on the web, I didn't find a good way to analyze the result. Could you help me with this? Thanks in advance

    Thanks, the problem here is that we use the same webservice for more devices and a web page in .NET) that's why we use this webservice. Anyway thanks for the help. I read a lot of posts and the only way is perhaps to save the XML document in the SD card

  • Unable to read the XML of vCO - permission denied

    Hello guys,.

    I was trying to read/write xml workflows vCO files:

    I'm kinda stuck here, and I'd like to see if someone else has already encountered this problem before, and how solve you this problem?

    No details on this issue will be appreciated.

    Thank you

    DH

    Odd.

    What is your use cases? This file should accessible from an external system or not? If this does not store the file in a resource element is a better option.

  • Unable to parse the file config.xml - bad xml structure

    I'm doing a simple application for blackberry phones.  I used the code on the site of dev on creating your first application.


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "1.0.0.0" >
      DevBlog
      BlackBerry Developer Blog
     
    email = '[email protected]' > John Doe
     
      http://devBlog.BlackBerry.com"/ >
     

    I edited it for the site we want to and other details as follows:


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version = "1.0.0.0" >
     
     DeVryUniversity 
     DeVry University Library 
     
    email ="[email protected]" > Danny coats "
      
     http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local&page=first"/ >
     

    It gives me the following error when I compile it:

    C:\Program Research In Motion\BlackBerry WebWorks Packager > bbwp "C:\Users\".
    Danny Coats\workspace\applications\DeVryLibrary\DeVryLibrary.zip.
    [INFO]                  Parsing of the command line options
    [INFO]                  Bbwp.properties analysis
    [INFO]                  Validation of archive application
    [INFO]                  The analysis of config.xml
    [ERROR]                 Impossible to analyze the file config.xml - bad structure XML

    I use Windows 7 Professional and the latest version of the SDK of Blackberry WebWorks.  I find nothing in the community for this to solve.

    Any suggestions will be greatly appreciated.

    I had the same error when you try your config.
    So, I try to analyse.
    I found the error is in the value of the content item, you must:

    http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local&page=first

    and should be:

    http://library.DeVry.edu/cgi-bin/Pwebrecon.cgi?DB=local & page = First

    If the special characters in the URL must be converted to their html entities.

  • Script to parse the XML data in Oracle DB

    Thank you for your time.

    I'm trying to use method 1 mentioned in answer 1 https://community.oracle.com/thread/1115266?tstart=0

    Please suggest how to change the method 1 XML part to adapt my XML?

    I am also including the code mentioned in method 1 for convenience

    Create or replace procedure parse_xml is
      l_bfile   BFILE;
      l_clob    CLOB;
      l_parser  dbms_xmlparser.Parser;
      l_doc     dbms_xmldom.DOMDocument;
      l_nl      dbms_xmldom.DOMNodeList;
      l_n       dbms_xmldom.DOMNode;
      l_file      dbms_xmldom.DOMNodeList;
      l_filen       dbms_xmldom.DOMNode;
      lv_value VARCHAR2(1000);
       l_ch      dbms_xmldom.DOMNode;
    
    l_partname varchar2(100);
    l_filename varchar2(1000);
      l_temp    VARCHAR2(1000);
      TYPE tab_type IS TABLE OF tab_software_parts%ROWTYPE;
      t_tab  tab_type := tab_type();
    BEGIN
      l_bfile := BFileName('DIR1', 'SoftwareParts.xml');
      dbms_lob.createtemporary(l_clob, cache=>FALSE);
      dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
      dbms_lob.loadFromFile(dest_lob => l_clob,    src_lob  => l_bfile,    amount   => dbms_lob.getLength(l_bfile));
      dbms_lob.close(l_bfile); 
      dbms_session.set_nls('NLS_DATE_FORMAT','''DD-MON-YYYY''');
      
      l_parser := dbms_xmlparser.newParser;
      
      dbms_xmlparser.parseClob(l_parser, l_clob);
      l_doc := dbms_xmlparser.getDocument(l_parser);
        dbms_lob.freetemporary(l_clob);
      dbms_xmlparser.freeParser(l_parser);
      
      l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/PartDetails/Part');
      
        FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
        l_n := dbms_xmldom.item(l_nl, cur_emp);
        t_tab.extend;
      
        dbms_xslprocessor.valueOf(l_n,'Name/text()',l_partname);
        t_tab(t_tab.last).partname := l_partname;
        l_file := dbms_xslprocessor.selectNodes(l_n,'Files/FileName');
    
        FOR cur_ch IN 0 .. dbms_xmldom.getLength(l_file) - 1 LOOP
          l_ch := dbms_xmldom.item(l_file, cur_ch);
          lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_ch));
          
          if t_tab(t_tab.last).partname is null then t_tab(t_tab.last).partname := l_partname; end if;
          t_tab(t_tab.last).filename := lv_value;
        t_tab.extend;
        
       END LOOP;
    
       END LOOP;
        t_tab.delete(t_tab.last);
      
      FOR cur_emp IN t_tab.first .. t_tab.last LOOP
      
      if t_tab(cur_emp).partname is not null and  t_tab(cur_emp).filename is not null then
        INSERT INTO tab_software_parts
        VALUES
        (t_tab(cur_emp).partname, t_tab(cur_emp).filename);
        end if;
        
      END LOOP;
      COMMIT;
    
      dbms_xmldom.freeDocument(l_doc);
    EXCEPTION
      WHEN OTHERS THEN
        dbms_lob.freetemporary(l_clob);
        dbms_xmlparser.freeParser(l_parser);
        dbms_xmldom.freeDocument(l_doc);
    END;
    
    
    
    

    I have an XML file in the following format.

    < TWObject className = "TWObject" >

    < array size = "240" >

    < item >

    < type variable = "QuestionDetail" >

    < questionId type = "String" > <! [CDATA [30]] > < / questionId >

    < questionType type = "questionType" > <! [CDATA [COUNTRY]] > < / questionType >

    < type country = "String" > <! [CDATA [GB]] > < / country >

    < questionText type = "String" > <! [CDATA [Please indicate whether the following "market research Type" applies to your project: < br > < br > detail followed or Message reminds me of a study put in service in a list of call/target Lilly]] > < / questionText >

    < optionType type = "String" > <! [CDATA [RadioButton]] > < / optionType >

    < answerOptions type = 'String []' >

    < point > <! [CDATA [Yes]] > < / item >

    < point > <! [CDATA [n]] > < / item >

    < / answerOptions >

    < ruleId type = "String" > <! [CDATA [CRP_GB001]] > < / ruleId >

    < parentQuestionId type = "String" > < / parentQuestionId >

    < parentQuestionResp type = "String" > < / parentQuestionResp >

    < / variable >

    < / point >

    < / array >

    < / TWObject >

    If you get a chain of about 512K size then it must be be provided as a CLOB as a varchar2 cannot accept that 32767 bytes (1 byte out of 32K).

    So, you probably want something like this...

    Create procedure textxmlpro (str in clob) is

    Start

    insert into whatevertable

    Select x.rn

    x.item_type

    x.questionid

    x.questiontype

    x.country

    x.questiontext

    x.optiontype

    y.opt_rn

    y.item

    x.ruleId

    x.parentquestionid

    x.parentquestionresp

    from xmltable ('/ TWObject/table/point ')

    by the way of xmltype (str)

    columns for the ordinalite RN

    , path of varchar2 (15) of item_type '. / variable/@type'

    , path of varchar2 (5) questionid '. / variable/questionId '

    , path of varchar2 (10) of questiontype '. / variable/questionType '

    , path of countries varchar2 (5) '. / variable/country '

    , path of varchar2 (40) of questiontext '. / variable/questionText '

    , path of varchar2 (15) of optiontype '. / variable/optionType '

    , answerOptions xmltype path '. / variable/answerOptions '

    , path of varchar2 (10) RuleID '. / variable/rule ID '

    , path of varchar2 (5) of parentquestionid '. / variable/parentQuestionId '

    , path of varchar2 (5) of parentquestionresp '. / variable/parentQuestionResp '

    ) x

    , xmltable ('/ answerOptions/point ')

    in passing x.answerOptions

    columns for the ordinalite opt_rn

    , path of varchar2 (5) point '.'

    ) y ;

    end;

    Who is using XMLTYPE (.. clobvariable..) on the clause of "passage" to the XMLTABLE statement (no need for WITH t... in your case). He also does insert it into your table as with any normal insert into... select statement.

  • How to write sql queries to parse the xml?

    Hi, I'm new to this xml parsing. I need to extract the value of an xml file by using the sql query. Please find the sample xml file. Kindly help me.

    <? XML version = "1.0" encoding = "UTF-8"? >

    < MaterialUpdates >

    < material >

    < SalesOrg >

    KAR12 < ID > < /ID >

    < / SalesOrg >

    < / materials >

    < / MaterialUpdates >

    I need extratct ID value: / MaterialUpdates/Materials/SalesOrg/ID

    Hello

    For more than one nodes, have to manage like this,

    Q SELECT EXTRACTVALUE (VALUE (x), ' / SalesOrg/ID ')

    OF xml_table a, TABLE (XMLSEQUENCE (EXCERPT (xmltype (column_name), "MaterialUpdates/materials/SalesOrg"))) x;

    Take advantage of...

Maybe you are looking for