Help in XML parse

Can anyone help in parsing a XML formatted like this by using pl/sql:
<user><id>myId</id><test><type>XYType</type>hereisthevalue</test></user>
thanks.

It really depends on what you want to do with it but here is one option:
This block will parse out the user id and test type. I am typing this without access to a database to try it or an xml editor. I think you have an error in your xml. I removed "hereisthevalue" as it is in the wrong place. It needs to be wrapped in an additional tag.
declare
v_xml xmltype ;
begin
v_xml := xmltype('<user><id>myId</id><test><type>XYType</type></test></user>');
dbms_output.put_line('User ID=' || v_xml.extract('/user/id/text()).getStringVal());
dbms_output.put_line('Test Type=' || v_xml.extract('/user/test/type/text()).getStringVal());
end;
Hope that helps,
LewisC

Similar Messages

  • Need help on xml parsing... no body replied at xml forum...plz help

    it 's 10g
    set serveroutput on
    set line 2000
    drop table emp;
    CREATE TABLE EMP (
      EMPNO     NUMBER(10),
      ENAME     VARCHAR2(10),
      JOB       VARCHAR2(9),
      MGR       NUMBER(4),
      HIREDATE  DATE,
      SAL       NUMBER(7, 2),
      COMM      NUMBER(7, 2),
      DEPTNO   NUMBER(2));
    DECLARE
      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_temp    VARCHAR2(1000);
      TYPE tab_type IS TABLE OF emp%ROWTYPE;
      t_tab  tab_type := tab_type();
    BEGIN
      l_bfile := BFileName('ADMIN1_DIR', 'emp.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);
      -- make sure implicit date conversions are performed correctly
      dbms_session.set_nls('NLS_DATE_FORMAT','''DD-MON-YYYY''');
      -- Create a parser.
      l_parser := dbms_xmlparser.newParser;
      -- Parse the document and create a new DOM document.
      dbms_xmlparser.parseClob(l_parser, l_clob);
      l_doc := dbms_xmlparser.getDocument(l_parser);
      -- Free resources associated with the CLOB and Parser now they are no longer needed.
      dbms_lob.freetemporary(l_clob);
      dbms_xmlparser.freeParser(l_parser);
      -- Get a list of all the EMP nodes in the document using the XPATH syntax.
      --l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/EMPLOYEES/EMP');
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/ipdrIPDR');
      -- Loop through the list and create a new record in a tble collection
      -- for each EMP record.
      FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
        l_n := dbms_xmldom.item(l_nl, cur_emp);
        t_tab.extend;
        -- Use XPATH syntax to assign values to he elements of the collection.
    --    dbms_xslprocessor.valueOf(l_n,'recordId/text()',t_tab(t_tab.last).empno);
        dbms_xslprocessor.valueOf(l_n,'recordId/text()',t_tab(t_tab.last).ename);
        dbms_xslprocessor.valueOf(l_n,'JOB/text()',t_tab(t_tab.last).job);
        dbms_xslprocessor.valueOf(l_n,'MGR/text()',t_tab(t_tab.last).mgr);
        dbms_xslprocessor.valueOf(l_n,'HIREDATE/text()',t_tab(t_tab.last).hiredate);
        dbms_xslprocessor.valueOf(l_n,'SAL/text()',t_tab(t_tab.last).sal);
        dbms_xslprocessor.valueOf(l_n,'COMM/text()',t_tab(t_tab.last).comm);
        dbms_xslprocessor.valueOf(l_n,'DEPTNO/text()',t_tab(t_tab.last).deptno);
      END LOOP;
      -- Insert data into the real EMP table from the table collection.
      -- Form better performance multiple collections should be used to allow
      -- bulk binding using the FORALL construct but this would make the code
      -- too long-winded for this example.
      FOR cur_emp IN t_tab.first .. t_tab.last LOOP
        INSERT INTO emp
         ename
        VALUES
         t_tab(cur_emp).ename
      END LOOP;
      COMMIT;
      -- Free any resources associated with the document now it
      -- is no longer needed.
      dbms_xmldom.freeDocument(l_doc);
    EXCEPTION
      WHEN OTHERS THEN
        dbms_output.put_line('errrrrrrrr--->'||sqlerrm);
       dbms_lob.freetemporary(l_clob);
        dbms_xmlparser.freeParser(l_parser);
        dbms_xmldom.freeDocument(l_doc);
    END;
    /select * from emp;
    this file works fine
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <ipdrIPDR>
    <recordId>923622</recordId>
    </ipdrIPDR>
    but this is not . .. note my special charter in the tokens... i did change in the program too but does not work ...
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <ipdr:IPDR>
    <recordId>923622</recordId>
    </ipdr:IPDR>
    I get error
    errrrrrrrr--->ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "ipdr" is not declared
    Error at line 2
    PL/SQL procedure successfully completed.

    Hi,
    Yes, I have tried the same method. will be ok.
    But I have got another some records on the same column as follows.
    I have tried with another one xmltable with outer join(+), still not getting the actual data (null record from the original(main) table) and extra records from the new xmltable.
    Is it possible to make one or union with xmltable also can we check the node either /Item or /section exists something like that
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <section>
      <sectionmetadata>
        <object_id>317832</object_id>
        <asitype>Section</asitype>
        <instructornotes/>
      </sectionmetadata>
      <selection_ordering>
        <selection seltype="All">
          <selection_number>1</selection_number>
          <or_selection>
            <selection_metadata mdoperator="EQ" mdname="questionid">_155451_1</selection_metadata>
          </or_selection>
        </selection>
        <selection seltype="All">
          <or_selection>
            <selection_param pname="singleLink">true</selection_param>
          </or_selection>
        </selection>
      </selection_ordering>
    </section>Thanks,

  • Need help in XML Parsing

    Hello experts,
    I have to validate a xml against schema.I have used some java code & xerces jar ro solve this problem.It's working fine.But it's showing only first error & it's coming out.I want to list all the errors.Please help me by guiding how to achieve it.Right now the code I am using is easy enough , I just need to provide the schema file & xml file.But if I have to find out all the errors , do I need to parse it line by line?Please help.Thanx tonn in advance.

    Ya . this is possible if you have heard about XSLT transformation .
           File xmlFile = new File("XmlFileToTransform");
                File xsltFile = new File("U R SCHEMA");
         XMLReader reader = XMLReaderFactory.createXMLReader();
         reader.setEntityResolver(new NullResolver());
         FileOutputStream fos = new FileOutputStream(out);
                        Writer out = new BufferedWriter(new OutputStreamWriter(fos,
                                  "UTF8"));
                        SAXSource xmlSource = new SAXSource(reader, new InputSource(
                                  xmlFile.toURI().getRawPath()));
                        Source xsltSource = new StreamSource(xsltFile);
                        Result result = new StreamResult(out);
                        // create an instance of TransformerFactory
                        TransformerFactory transFact = TransformerFactory.newInstance();
                        Transformer trans = transFact.newTransformer(xsltSource);
                        trans.transform(xmlSource, result); // this will transform xml according to u r xslt file
                        out.close();see if this is helpful for u !

  • I need help! XML Parsing

    This is my xml code file.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <contato_lista xmlns="includes:net_schema.xml">
         <contato ID="001">
              <nome>Andr�teste</nome>
              <ip>192.168.25.242</ip>
         </contato>
         <contato ID="002">
              <nome>Gustavo</nome>
              <ip>192.168.25.72</ip>
         </contato>
    </contato_lista>
    I am trying to get the text from the tags <nome> and <ip> from the 2 tags <contato>. And this is the method I am using. I am trying to get the text in the tags <nome> in the array contatos_lista[], everytime I run the program I get empty. Please I need help. I am desperade.
    Thanks in advace.
    public String[] importaContatos() {
    String contatos_lista[] = new String[ 12 ];
    contatos_lista[0] = "N�o h� contatos";
    Node nodeContato;
    NodeList contatoChild;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
    File contatos = new File("D:/userdir/mycodes/NetMessage/contatos.xml");
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( contatos );
    }catch (SAXParseException spe) {
    }catch (ParserConfigurationException e){
    }catch(SAXException e){
    }catch (IOException e){
    Node nodeElement = document.getDocumentElement();
    Node nodeChild = nodeElement.getParentNode();
    Node nodeContatoLista = nodeChild;
    NodeList contatoListaChild = nodeContatoLista.getChildNodes();
    //JOptionPane.showMessageDialog(null , contatos_lista[0]);
    for (int i = 0; i <= contatoListaChild.getLength(); i++){
    nodeContato = nodeContatoLista.getFirstChild();
    nodeContato = nodeChild.getNextSibling();
    contatoChild = nodeContato.getChildNodes();
    int count = 0;
    for (int y = 0; y < contatoChild.getLength(); y++){
    contatos_lista[count] = contatoChild.item(y).getNodeValue();
    count++;
    return contatos_lista;
    }

    This is my xml code file.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <contato_lista xmlns="includes:net_schema.xml">
         <contato ID="001">
              <nome>Andr�teste</nome>
              <ip>192.168.25.242</ip>
         </contato>
         <contato ID="002">
              <nome>Gustavo</nome>
              <ip>192.168.25.72</ip>
         </contato>
    </contato_lista>
    I am trying to get the text from the tags <nome> and
    <ip> from the 2 tags <contato>. And this is the method
    I am using. I am trying to get the text in the tags
    <nome> in the array contatos_lista[], everytime I run
    the program I get empty. Please I need help. I am
    desperade.
    Thanks in advace.
    public String[] importaContatos() {
    String contatos_lista[] = new String[ 12 ];
    contatos_lista[0] = "N�o h� contatos";
    Node nodeContato;
    NodeList contatoChild;
    DocumentBuilderFactory factory =
    ctory = DocumentBuilderFactory.newInstance();
    try {
    File contatos = new
    tatos = new
    File("D:/userdir/mycodes/NetMessage/contatos.xml");
    DocumentBuilder builder =
    r builder = factory.newDocumentBuilder();
    document = builder.parse( contatos );
    }catch (SAXParseException spe) {
    }catch (ParserConfigurationException e){
    }catch(SAXException e){
    }catch (IOException e){
    Node nodeElement =
    ement = document.getDocumentElement();
    Node nodeChild = nodeElement.getParentNode();
    Node nodeContatoLista = nodeChild;
    NodeList contatoListaChild =
    Child = nodeContatoLista.getChildNodes();
    //JOptionPane.showMessageDialog(null ,
    (null , contatos_lista[0]);
    for (int i = 0; i <=
    0; i <= contatoListaChild.getLength(); i++){
    nodeContato =
    deContato = nodeContatoLista.getFirstChild();
    nodeContato = nodeChild.getNextSibling();
    contatoChild =
    tatoChild = nodeContato.getChildNodes();
    int count = 0;
    for (int y = 0; y <
    y = 0; y < contatoChild.getLength(); y++){
    contatos_lista[count] =
    atos_lista[count] =
    contatoChild.item(y).getNodeValue();
    count++;
    return contatos_lista;
    }This line appears to be wrong to me
    Node nodeChild = nodeElement.getParentNode();
    Why are you doing that?
    Anyway it would be easier just to do
    ement = document.getDocumentElement();
    NodeList contatoListaChild = ement.getElementsByTagName("contato");
    for (int i = 0; i <= contatoListaChild.getLength(); i++){
      Element contato = contatoListaChild.item(i);

  • HELP ::: DOM XML Parser

    Hi,
    I am trying to parse this xml.
    <Node>MS
    <Condition>BooleaaaaanOperator
    <Operation>AND</Operation>
    <Condition>NumberList
    <Comment>Only destinations are allowed to be sent.</Comment>
    <Type>0</Type>
    <Number>083538</Number>
    </Condition>
    <Condition22>BooooooooooooleanOperator
    <Operation1>NOT</Operation1>
    <Condition55>BooleeeeeeeeeeanOperator
    <Operation2>AND</Operation2>
    <Condition33>ExtensionNr
    <Comment>When Extension Number 2 is not set to 1 it indicates the content type of the message.</Comment>
    <Number>2</Number>
    <Value>1</Value>
    </Condition33>
    <Condition44>ExtensionNr
    <Numm>101010101010101</Numm>
    <Value>0-1002</Value>
    </Condition44>
    </Condition55>
    </Condition22>
    </Condition>
    <Node>Fee
    I can get the Numm string using the parser by this line
    elementSub5.getFirstChild().getNextSibling().getNodeName())
    BUT:: I cannot get the value of that node to print out, or set it to a variable.
    I really need the 101010101010101 but cannot get them. I have tried everything.

    If you could post more code I could possibly help you out. Just post some code of where the problem is and I will look at it. I believe there is a getNodeValue() method and there may be a getTextContent() method or something... actually I think I ran into this problem before... you can pull the value out of the toString() method by using a substring.
    I used something like this and it worked fine...
    String data = node.toString();
    data = data.substring(data.indexOf(":")+1, data.length()-1);
    In your case perhaps you can try something like this...
    String elementData = elementSub5.getFirstChild().getNextSibling().toString();
    elementData = elementData.substring(elementData.indexOf(":")+1, elementData.length()-1);
    That substring method may not be 100% accurate... you best bet is to just put the node to a string and by debugging the program look at what the string value is. You can then adjust the substring to grab the correct data from the XML.
    You would think there is a better way to do this... but I could not find it and this way worked for me...

  • Need Help with XML Parsing on to DataGrid

    Hi
    I have retrivied  this  Data  into my HttpService Result function .
    <list>
      <User>
        <ename>JAMES</ename>
        <empno>7900</empno>
      </User>
      <User>
        <ename>FORD</ename>
        <empno>7902</empno>
      </User>
      <User>
        <ename>MILLER</ename>
        <empno>7934</empno>
      </User>
    </list>
    [Bindable]
        private var xmldata:XML;
    private function resultHandler(event:ResultEvent):void{
            xmldata=event.result as XML;
    <mx:DataGrid x="50" y="23" width="469" height="265" dataProvider="{xmldata.User}">
      <mx:columns>
       <mx:DataGridColumn headerText="Type" dataField="ename"/>
       <mx:DataGridColumn headerText="Sales" dataField="empno"/>
      </mx:columns>
    </mx:DataGrid>
    But this is not displaying any data into DataGrid .
    Could anybody please help me .
    Thanks .

    after you get data assign the data to the data grid
    datagrid.dataprovider = xml;
    and also do datagrid.invalidateList() after u get the data if the above line does not help
    also see if the data provider is not null if nothing helped.

  • Help on XML parsing into rdbms table

    Hi,
    I have posted here three different record, is that possible any of you give me some idea(out line) structure to get into some kind of oracle table format.
    There few number of repeating blocks, which gives all the time the sequence error or if commented out may not be working.
    I need to extract all values, but all I am expecting as a great help is some outline (atleast one column(s)) to each repeating block, then I will fill other columns
    DB Version
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0      Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    record 1
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <item title="496S00017" maxattempts="0">
      <itemmetadata>
        <object_id>_140939_1</object_id>
        <asitype>Item</asitype>
        <extracred>false</extracred>
        <absolutea>10.0</absolutea>
        <tornotes>a
    </tornotes>
      </itemmetadata>
      <presentation>
        <flow class="Block">
          <flow class="QUESTION_BLOCK">
            <flow class="FORMATTED_TEXT_BLOCK">
              <material>
                <mat_extension>
                  <mat_formattedtext type="HTML">What general &lt;br /&gt;&lt;br /&gt;(Select all that apply)&lt;br /&gt;        </mat_formattedtext>
                </mat_extension>
              </material>
            </flow>
          </flow>
          <flow class="RESPONSE_BLOCK">
            <response_lid ident="response" rcardinality="Multiple" rtiming="No">
              <render_choice shuffle="No" minnumber="0" maxnumber="0">
                <flow_label class="Block">
                  <response_label ident="d43d7c6bc8bb4b2fbed08fff7d99c149" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">Ensure a .&lt;br /&gt;        </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="9bc429d7a4ff44b984d5e0fc5ba75d30" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">Wear .&lt;br /&gt;        </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="76e38c48c7464e5aa76de83e575e15c4" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">Maintain .&lt;br /&gt;        </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="fbbd2d296e3d47239dd23d1371657381" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">Do .&lt;br /&gt;        </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="bcde31a42b5241bb86e52ecf5d2736d9" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">Avoid .&lt;br /&gt;    </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
              </render_choice>
            </response_lid>
          </flow>
        </flow>
      </presentation>
      <resprocessing scoremodel="SumOfScores">
        <outcomes>
          <decvar varname="SCORE" vartype="Decimal" defaultval="0.0" minvalue="0.0" maxvalue="10.0"/>
        </outcomes>
        <respcondition title="correct">
          <conditionvar>
            <and>
              <varequal respident="response" case="No">d43d7c6bc8bb4b2fbed08fff7d99c149</varequal>
              <not>
                <varequal respident="response" case="No">9bc429d7a4ff44b984d5e0fc5ba75d30</varequal>
              </not>
              <varequal respident="response" case="No">76e38c48c7464e5aa76de83e575e15c4</varequal>
              <varequal respident="response" case="No">fbbd2d296e3d47239dd23d1371657381</varequal>
              <not>
                <varequal respident="response" case="No">bcde31a42b5241bb86e52ecf5d2736d9</varequal>
              </not>
            </and>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">SCORE.max</setvar>
          <displayfeedback linkrefid="correct" feedbacktype="Response"/>
        </respcondition>
        <respcondition title="incorrect">
          <conditionvar>
            <other/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0.0</setvar>
          <displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
        </respcondition>
      </resprocessing>
      <itemfeedback ident="correct" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="incorrect" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="d43d7c6bc8bb4b2fbed08fff7d99c149" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="9bc429d7a4ff44b984d5e0fc5ba75d30" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="76e38c48c7464e5aa76de83e575e15c4" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="fbbd2d296e3d47239dd23d1371657381" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="bcde31a42b5241bb86e52ecf5d2736d9" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
    </item>
    record 2
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <item title="496S00038" maxattempts="0">
      <itemmetadata>
        <object_id>_155451_1</object_id>
        <asitype>Item</asitype>
        <bbmd_questiontype>Multiple Choice</bbmd_questiontype>
        <extracred>false</extracred>
        <absolutea>10.0</absolutea>
        <tornotes>Z
    </tornotes>
      </itemmetadata>
      <presentation>
        <flow class="Block">
          <flow class="QUESTION_BLOCK">
            <flow class="FORMATTED_TEXT_BLOCK">
              <material>
                <mat_extension>
                  <mat_formattedtext type="HTML">&lt;p&gt;This next choice.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Your landmark. &lt;/p&gt;</mat_formattedtext>
                </mat_extension>
              </material>
            </flow>
          </flow>
          <flow class="RESPONSE_BLOCK">
            <response_lid ident="response" rcardinality="Single" rtiming="No">
              <render_choice shuffle="No" minnumber="0" maxnumber="0">
                <flow_label class="Block">
                  <response_label ident="0c72cf2736f54d9ab6da93555f023339" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;div&gt;&lt;embed src= &quot;@[email protected]@X@bbcswebdav/xid-1220031_1&quot; type= &quot;application/x-shockwave-flash&quot;&gt; &lt;/div&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="f27a2e848a694b1c920bf94d1e66316a" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;div&gt;&lt;embed src= &quot;@[email protected]@X@bbcswebdav/xid-1220032_1&quot; type= &quot;application/x-shockwave-flash&quot;&gt; &lt;/div&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="49a1aabd4b1e4305b38a43c50d41ba41" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;div&gt;&lt;embed src= &quot;@[email protected]@X@bbcswebdav/xid-1220033_1&quot; type= &quot;application/x-shockwave-flash&quot;&gt; &lt;/div&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="a5ff047407d741ed9ad68790332afcc9" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;div&gt;&lt;embed src= &quot;@[email protected]@X@bbcswebdav/xid-1220034_1&quot; type= &quot;application/x-shockwave-flash&quot;&gt; &lt;/div&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
              </render_choice>
            </response_lid>
          </flow>
        </flow>
      </presentation>
      <resprocessing scoremodel="SumOfScores">
        <outcomes>
          <decvar varname="SCORE" vartype="Decimal" defaultval="0.0" minvalue="0.0" maxvalue="10.0"/>
        </outcomes>
        <respcondition title="correct">
          <conditionvar>
            <varequal respident="response" case="No">49a1aabd4b1e4305b38a43c50d41ba41</varequal>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">SCORE.max</setvar>
          <displayfeedback linkrefid="correct" feedbacktype="Response"/>
        </respcondition>
        <respcondition title="incorrect">
          <conditionvar>
            <other/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0.0</setvar>
          <displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="0c72cf2736f54d9ab6da93555f023339" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="0c72cf2736f54d9ab6da93555f023339" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="f27a2e848a694b1c920bf94d1e66316a" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="f27a2e848a694b1c920bf94d1e66316a" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="49a1aabd4b1e4305b38a43c50d41ba41" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">10</setvar>
          <displayfeedback linkrefid="49a1aabd4b1e4305b38a43c50d41ba41" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="a5ff047407d741ed9ad68790332afcc9" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="a5ff047407d741ed9ad68790332afcc9" feedbacktype="Response"/>
        </respcondition>
      </resprocessing>
      <itemfeedback ident="correct" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="incorrect" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="0c72cf2736f54d9ab6da93555f023339" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="f27a2e848a694b1c920bf94d1e66316a" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="49a1aabd4b1e4305b38a43c50d41ba41" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="a5ff047407d741ed9ad68790332afcc9" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
    </item>
    record 3
    <?xml version="1.0" encoding="UTF-8"?>
    <item title="496S00070" maxattempts="0">
      <itemmetadata>
        <object_id>37041578</object_id>
        <asitype>Item</asitype>
        <qmd_instructornotes>IS
    </qmd_instructornotes>
      </itemmetadata>
      <presentation>
        <flow class="Block">
          <flow class="QUESTION_BLOCK">
            <flow class="FORMATTED_TEXT_BLOCK">
              <material>
                <mat_extension>
                  <mat_formattedtext type="HTML">&lt;font size=&quot;2&quot;&gt;Base </mat_formattedtext>
                </mat_extension>
              </material>
            </flow>
          </flow>
          <flow class="RESPONSE_BLOCK">
            <response_lid ident="response" rcardinality="Single" rtiming="No">
              <render_choice shuffle="No" minnumber="0" maxnumber="0">
                <flow_label class="Block">
                  <response_label ident="2513bfab92b14dce82f014fdb667730a" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;!mso-bidi-theme-font:minor-bidi;} &lt;/style&gt; &lt;![endif]--&gt;  </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="7498293ce4ef4891984bcdbad2bc8c1d" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;!mso-bidi-theme-font:minor-bidi;} &lt;/style&gt; &lt;![endif]--&gt; 
    </mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="c5fb333685144ab6b35848998667239d" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;!mso-bidi-theme-font:minor-bidi;} &lt;/style&gt; &lt;![endif]--&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
                <flow_label class="Block">
                  <response_label ident="419fa8003e4d4d128e664f0d9c9d106e" shuffle="Yes" rarea="Ellipse" rrange="Exact">
                    <flow_mat class="FORMATTED_TEXT_BLOCK">
                      <material>
                        <mat_extension>
                          <mat_formattedtext type="HTML">&lt;!mso-bidi-theme-font:minor-bidi;} &lt;/style&gt; &lt;![endif]--&gt;</mat_formattedtext>
                        </mat_extension>
                      </material>
                    </flow_mat>
                  </response_label>
                </flow_label>
              </render_choice>
            </response_lid>
          </flow>
        </flow>
      </presentation>
      <resprocessing scoremodel="SumOfScores">
        <outcomes>
          <decvar varname="SCORE" vartype="Decimal" defaultval="0" minvalue="0.0" maxvalue="10.0"/>
        </outcomes>
        <respcondition title="correct">
          <conditionvar>
            <varequal respident="response" case="No">7498293ce4ef4891984bcdbad2bc8c1d</varequal>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">SCORE.max</setvar>
          <displayfeedback linkrefid="correct" feedbacktype="Response"/>
        </respcondition>
        <respcondition title="incorrect">
          <conditionvar>
            <other/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0.0</setvar>
          <displayfeedback linkrefid="incorrect" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="2513bfab92b14dce82f014fdb667730a" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="2513bfab92b14dce82f014fdb667730a" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="7498293ce4ef4891984bcdbad2bc8c1d" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">10</setvar>
          <displayfeedback linkrefid="7498293ce4ef4891984bcdbad2bc8c1d" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="c5fb333685144ab6b35848998667239d" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="c5fb333685144ab6b35848998667239d" feedbacktype="Response"/>
        </respcondition>
        <respcondition>
          <conditionvar>
            <varequal respident="419fa8003e4d4d128e664f0d9c9d106e" case="No"/>
          </conditionvar>
          <setvar variablename="SCORE" action="Set">0</setvar>
          <displayfeedback linkrefid="419fa8003e4d4d128e664f0d9c9d106e" feedbacktype="Response"/>
        </respcondition>
      </resprocessing>
      <itemfeedback ident="correct" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="incorrect" view="All">
        <flow_mat class="Block">
          <flow_mat class="FORMATTED_TEXT_BLOCK">
            <material>
              <mat_extension>
                <mat_formattedtext type="HTML"/>
              </mat_extension>
            </material>
          </flow_mat>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="2513bfab92b14dce82f014fdb667730a" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="7498293ce4ef4891984bcdbad2bc8c1d" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="c5fb333685144ab6b35848998667239d" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
      <itemfeedback ident="419fa8003e4d4d128e664f0d9c9d106e" view="All">
        <solution view="All" feedbackstyle="Complete">
          <solutionmaterial>
            <flow_mat class="Block">
              <flow_mat class="FORMATTED_TEXT_BLOCK">
                <material>
                  <mat_extension>
                    <mat_formattedtext type="HTML"/>
                  </mat_extension>
                </material>
              </flow_mat>
            </flow_mat>
          </solutionmaterial>
        </solution>
      </itemfeedback>
    </item>Any help would be greatly appreciated.
    Thanks,

    Hi,
    Yes, I have tried the same method. will be ok.
    But I have got another some records on the same column as follows.
    I have tried with another one xmltable with outer join(+), still not getting the actual data (null record from the original(main) table) and extra records from the new xmltable.
    Is it possible to make one or union with xmltable also can we check the node either /Item or /section exists something like that
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <section>
      <sectionmetadata>
        <object_id>317832</object_id>
        <asitype>Section</asitype>
        <instructornotes/>
      </sectionmetadata>
      <selection_ordering>
        <selection seltype="All">
          <selection_number>1</selection_number>
          <or_selection>
            <selection_metadata mdoperator="EQ" mdname="questionid">_155451_1</selection_metadata>
          </or_selection>
        </selection>
        <selection seltype="All">
          <or_selection>
            <selection_param pname="singleLink">true</selection_param>
          </or_selection>
        </selection>
      </selection_ordering>
    </section>Thanks,

  • Please help!XML PARSING!

    I wanted to parse the following XML data using NanoXML.I succeeded in the <item></item> part.But when I added the "items" in the channel tag, I am not able to read anything and I am getting an exception error!
    Can anyone tell me why this is happening?
    <?xml version="1.0" encoding="UTF-8" ?>
    <rss version="2.0">
    <channel>
    //Comment==>Cant parse these items from here
    <title>BBC News - News front page</title>
    <link>http://www.bbc.co.uk/news/video_and_audio/news_front_page/</link>
    <description>The latest stories from the News front page section of the BBC News web site.</description>
    <language>en-gb</language>
    <lastBuildDate></lastBuildDate>
    <copyright>Copyright: (C) British Broadcasting Corporation</copyright>
    //Comment==>Cant parse these items till here
              <item>
                   <title>Spain Winner Of FIFA World Cup 2010</title>
                   <link>http://www.fifa.com/worldfootball/news/newsid=1862843.html</link>
                   <description>It is World Cup 2010 Day 27 and Spain beat Netherlands 1 to 0 during extra time emerging as the winner of FIFA World Cup 2010! It is the first time Spain has won the World Cup.</description>
              </item>
              <item>
                   <title>Dutch still proud despite the pain</title>
                   <link>http://www.fifa.com/worldfootball/news/newsid=1274347.html</link>
                   <description>FIFA World Cup runners-up Netherlands will receive the acclaim of their countrymen on a canal tour of  Amsterdam on Saturday and they have every reason to feel proud.</description>
              </item>
              <item>
                   <title>The Old Continent gears up</title>
                   <link>http://www.fifa.com/worldfootball/news/newsid=1234567.html</link>
                   <description>FIFA.com takes a look at the European continent, as many countries count down to the start of their newseasons and international coaches look to wipe the slate clean.</description>
              </item>
         </channel>
    </rss>

    I was getting null Error!
    This is the code that I wrote below:
    try{
              URL url = new URL("http://localhost:8080/examples/rss.xml");
              URLConnection connection = url.openConnection();
              WriteLog.logString("Success!Opening the file URL ");
              this.parser  = XMLParserFactory.createDefaultXMLParser();
              IXMLReader reader = new StdXMLReader(connection.getInputStream());
              this.parser.setReader(reader);
              IXMLElement xml = (IXMLElement)this.parser.parse();
              this.itemDetails = xml.getFirstChildNamed("channel");
              this.items = this.itemDetails.enumerateChildren();
              while (this.items.hasMoreElements())
                                  final IXMLElement item = (IXMLElement) this.items.nextElement();
                                  this.Title=item.getFirstChildNamed("title").getContent();
                                  this.Link=item.getFirstChildNamed("link").getContent();
                                  this.Desc=item.getFirstChildNamed("description").getContent();
              catch (Exception excep)
                   WriteLog.logString("Error! from Exception(IN CATALOGPARSER)"+excep.getMessage());
                   excep.printStackTrace();
              }Edited by: whityjames on Jul 20, 2010 1:14 AM

  • Pleasee Help , Urgent  , XML Parsing

    We should upload Sales Order XML File into OA Tables everyday .
    As I am very new to XML I request to give complete sample code ( giving just the logic needs time to understand, very urgent..)
    The current XML File can have mutilpe one sales order and each sales order can have many lines .Each line can have multiple taxes.
    Pls give the sample Code which you think is the best approach.
    I have used xpath(may not be right)
    I want to insert Parent Node / Child Node / Grand Child Done as one set of data.
    I used Xpath syntax , when I give the Parent node path in for loop, it inserts all parent nodes data at one time into the table , similarly all child nodes at one time .
    So I am unable to link grand child record with child record and parent record.
    To be specific , I am unable to trace these are the tax records for this line from this order.
    I have used xpath. I have loaded the xml file into table with clob variable
    l_OrderRequest_nodelist := xslprocessor.selectNodes(xmldom.makeNode(l_doc), '/Recordset');
    FOR rec IN 0 .. xmldom.getlength(l_OrderRequest_nodelist) -1 loop l_OrderRequest_node := xmldom.item(l_OrderRequest_nodelist,
    rec);
    end loop;
    we are not validating Sales order XML File with DTD or XSD .
    Please give sample code for parent / child /grandchild .
    Below is the sample file.
    - <Recordset>
    - <Header dueDate="2007-01-17T16:09:05" orderDate="2004-01-17" orderID="0009" transactionID="1389" type="new">
    <KeyIndex>2</KeyIndex>
    - <BillTo>
    - <Address addressID="5619" isoCountryCode="US">
    <Name>fMat</Name>
    - <PostalAddress name="default">
    <Street>34545</Street>
    <City>dfgfg</City>
    <State>AZ</State>
    <PostalCode>85086-1693</PostalCode>
    <County>Maricopa</County>
    <Country>US</Country>
    </PostalAddress>
    <Email name="default">[email protected]</Email>
    </Address>
    </BillTo>
    <PromotionCode />
    - <SubTotal>
    <Money currency="USD">32.49</Money>
    </SubTotal>
    - <Tax>
    <Money currency="USD">2.32</Money>
    <Description />
    </Tax>
    - <Shipping>
    <Money currency="USD">8.95</Money>
    <Description />
    </Shipping>
    </Header>
    - <Detail lineNumber="1" quantity="1">
    - <ItemDetail>
    - <UnitPrice>
    <Money currency="USD">29.99</Money>
    </UnitPrice>
    <ShortName>Little;reg; pxxxx® Learning System</ShortName>
    </ItemDetail>
    - <Tax>
    <Money currency="USD">1.68</Money>
    <Description />
    - <TaxDetail category="sales">
    - <TaxAmount>
    <Money currency="USD">1.68</Money>
    </TaxAmount>
    <TaxLocation>AZ</TaxLocation>
    </TaxDetail>
    </Tax>
    </Detail>
    - <Detail lineNumber="2" quantity="1">
    - <ItemDetail>
    - <UnitPrice>
    <Money currency="USD">29.99</Money>
    </UnitPrice>
    <ShortName>Little;reg; pxxxx® Learning System</ShortName>
    </ItemDetail>
    - <Tax>
    <Money currency="USD">1.68</Money>
    <Description />
    - <TaxDetail category="sales">
    - <TaxAmount>
    <Money currency="USD">1.68</Money>
    </TaxAmount>
    <TaxLocation>AZ</TaxLocation>
    </TaxDetail>
    </Tax>
    - <Tax>
    <Money currency="USD">0.68</Money>
    <Description />
    - <TaxDetail category="sales">
    - <TaxAmount>
    <Money currency="USD">0.68</Money>
    </TaxAmount>
    <TaxLocation>DISTRICT</TaxLocation>
    </TaxDetail>
    </Tax>
    </Detail>
    </Recordset>
    We are working on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Thanks in Adv
    Kal

    very urgent..Unfortunately, there are 36 other urgent requests before yours.

  • What is an XML PARSER?

    What is an XML Parser?
    what is it's use?

    XI is middleware tool to send data from one location to another Basically a middleware tool.
    and the data that XI send has some structre like
    firstname:XYZ
    Middlaename:ABX
    lastname:PQR
    All this data is represent as XML ( A way to store the data with tag here it is firstname last name
    So XI uses XLL parser to parse this data
    After parsing XI will come to know what is first name what is last name
    So actually dat is represent as below in XML
    <firstname>XYZ</firstname>
    <Middlaename>ABX</Middlaename>
    <lastnamePQR</lastname>
    Above is the defination of data that XI is going to send
    But in case data is wrong like
    <Middlaename>ABX</Middlaename>
    <firstname>XYZ</firstname>
    <lastnamePQR</lastname>
    Note Here ABX is first line
    and this data is wrong
    XI will find this wrong data with help of XML parser which has correct defination of the data
    in case data is wrong parser will give error that data is wrong
    Ps: If helful please give point

  • Help: How to parse XML string into Node Context

    Hi Experts,
    I am trying to work with a web dynpro for java application which calls a Web Service. I can call the web service successfully, however I have a problem on interpreting the response result into table. The response result is in (XML) string format, like this:
    I followed this , but it resulted to an error:
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x20(:main:, row:158, col:59)(:main:, row=158, col=59) -> com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x20(:main:, row:158, col:59)
    do anyone of you had a similar experience and were able to resolve it, please post it here. it will be highly appreciated. thanks in advance.

    Try this :
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps.

  • Can anyone help me fix an XML Parsing Error?

    Hi I have been working with a form in a PDF and suddenly it won't let me open it. The following error pops up: "Xml parsing error: not well-formed (invalid token) (error code 4), line 71537, column 695 of file" and I haven't been able to come up with a solution. A lot of data has been entered into this file for a grant that my clinic is applying for, so if anyone can help me I would be greatly appreciative.

    Hm, now I get:
    JPVNCManager.java:211: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v1 = (Vector<String>)o1;
    ^
    JPVNCManager.java:212: warning: [unchecked] unchecked cast
    found : java.lang.Object
    required: java.util.Vector<java.lang.String>
    Vector<String> v2 = (Vector<String>)o2;
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : java.util.Vector
    required: java.util.List<T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked conversion
    found : <anonymous java.util.Comparator>
    required: java.util.Comparator<? super T>
    Collections.sort(main, new Comparator()
    ^
    JPVNCManager.java:207: warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>,java.util.Comparator<? super T>) in java.util.Collections is applied to (java.util.Vector,<anonymous java.util.Comparator>)
    Collections.sort(main, new Comparator()
    ^
    Thanks,
    James

  • XML parsing error where none should be...please help!

    From Oracle 10g, I am calling web service running in ASP.NET 1.1 on IIS 6.0 to print a document and return a simple 'PRINTED' message via soap.
    The SOAP message I'm back from the web service is simply this:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <PrintBOLResponse xmlns="http://tempuri.org/">
    <PrintBOLResult>PRINTED</PrintBOLResult>
    </PrintBOLResponse>
    </soap:Body>
    </soap:Envelope>
    And the code and XPATH I am using to extract the message is:
    -- Remove the <?xml version="1.0" encoding="utf-8"?> header
    soap_respond := SUBSTR (soap_respond, 39, 10000);
    -- Create an XMLType variable containing the Response XML
    resp := XMLTYPE.createxml (soap_respond);
    -- Attempt to extract the message that should be returned by the web service
    resp := resp.EXTRACT ('/soap:Envelope/soap:Body/*/*/child::node()');
    And it gives me this error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/soap:Envelope/soap:Body/*/*/child::node()
    When I test it out here: http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm
    it parses just fine, and I cannot find any useful information on this LPX-00601 error.
    Please help?

    I'm sorry, the full response from the web service is:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    &#09;<soap:Body>
    &#09;&#09;<PrintBOLResponse xmlns="http://tempuri.org/">
    &#09;&#09;&#09;<PrintBOLResult>PRINTED</PrintBOLResult>
    &#09;&#09;</PrintBOLResponse>
    &#09;</soap:Body>
    </soap:Envelope>

  • URGENT HELP !!! ORA-31011: XML parsing failed

    Hi,
    Oracle 9.2.0.4
    I've run into
    ORA-31011: XML parsing failed ORA-19202: Error
    occurred in XML processing LPX-00247: invalid
    Document Type Declaration (DTD) Error at line 1
    ORA-06512: at line 15
    during updateXML operation under CLOB resource.
    It seems to me, I can't update created resource
    at all.
    Is anybody knows the workaround ?
    Please, help !!!
    Thanks,
    Viacheslav

    No, it is an html file. For test purpose I've taken
    welcome.html from ORACLE_HOME installation. Here are
    my test:
    declare
    res0 bfile := BFILENAME('TEMPDIR', 'welcome.html');
    res clob;
    Amount INTEGER := 4000;
    b BOOLEAN;
    begin
    Amount:=DBMS_LOB.getlength(res0);
    DBMS_LOB.CREATETEMPORARY(res,TRUE);
    DBMS_LOB.OPEN(res0, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.OPEN(res, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(res, res0,Amount);
    --DBMS_LOB.CLOSE(res0);
    b:=DBMS_XDB.createresource
    ('/MyCONTENT/welcome.html',res);
    commit;
    end;
    declare
    res0 bfile := BFILENAME('TEMPDIR', 'welcome.html');
    clob1 clob;
    amt number := dbms_lob.lobmaxsize;
    src_offset number := 1 ;
    dst_offset number := 1 ;
    lang_ctx number := dbms_lob.default_lang_ctx;
    warning number;
    Amount INTEGER := 4000;
    begin
    Amount:=DBMS_LOB.getlength(res0);
    DBMS_LOB.CREATETEMPORARY(clob1 ,TRUE);
    DBMS_LOB.OPEN(res0, DBMS_LOB.LOB_READONLY);
    DBMS_LOB.OPEN(clob1 , DBMS_LOB.LOB_READWRITE);
    -- DBMS_LOB.LOADFROMFILE(clob1 , res0,Amount);
    dbms_lob.LOADCLOBFROMFILE(clob1 ,res0, amt, dst_offset,
    src_offset,dbms_lob.default_csid, lang_ctx,warning) ;
    UPDATE xdb.resource_view SET res=updatexml
    (res,'/Resource/Contents/*',
    WHERE any_path= '/MyCONTENT/welcome.html';
    commit;
    --dbms_lob.filecloseall() ;
    end;

  • Need help with error: XML parser failed: Error An exception occurred! Type:......

    <p>Need help with the following error.....what does it mean....</p><p>28943 3086739136 XML-240304 3/7/07 7:13:23 PM |SessionNew_Job1<br /><font color="#ff0000">28943 3086739136 XML-240304 3/7/07 7:13:23 PM XML parser failed: Error <An exception occurred! Type:UnexpectedEOFException, Message:The end of input was not expected> at</font><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM line <7>, char <8> in <<?xml version="1.0" encoding="WINDOWS-1252" ?><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfigurations><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfiguration default="true" name="Configuration1"><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <case_sensitive>no</case_sensitive><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <database_type>Oracle</database_type><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_alias_name1>ODS_OWNER</db_alias_name1><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_ali>, file <>.<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM |SessionNew_Job1<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM XML parser failed: See previously displayed error message.</p><p>Any help would be greatly appreciated.  It&#39;s something to do with my datasource and possibly the codepage but I&#39;m really not sure.</p><p>-m<br /></p>

    please export your datastore as ATL and send it to support. Somehow the internal language around configurations got corrupted - never seen before.

Maybe you are looking for

  • Need info on how to get class

    Hi , When you run transaction PLM_AUDITMONITOR --> Corrective/Prventive actions --> select one of the corrective/preventive actions and click on audit component it shows a screen which has Actions,Descriptions and view selection , language , Basic da

  • Session ends after calling repor from form

    Hi I have a report that I call from a form, the called report opens up in a new browser window just like a popup. The problem is that as soon as the report displays I loose the forms session and I therefore have to logon everytime I want to run the r

  • WS-Security Encrypted Response

    Hi, When I call a WS-Security web service (in WLS 8.1 SP3), it works fine until I set it to encrypt the response. Then I get java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultExc eption: Exception during processing: weblogic.utils.Asse

  • Set the role in runtime through JDBC

    Hi Everybody, I 've set the role for a user with the privilege of running the Stored procedure in runtime just in that session and it's giving me the error PLS-102 saying that it cannot identify that procedure, but when I grant that role through the

  • Iphone 6 not syncing with outlook 2013 correctly

    Just got the new iPhone 6 and syncing with outlook 2013 is not working.  No contacts are coming over.  Calendar comes over only partially.  Music and apps work fine.  The settings in itune are the same as with the old iPhone 4 but maybe there is some