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.

Similar Messages

  • Urgent- xml parsing failed - xmlelement

    hi
    what am i doing wrong here?
    oracle 10.2.0.1
    AL32UTF8 charset.
    trying to generate an xml using xdk
    running this
    SELECT XMLELEMENT("date", sysdate) FROM dual
    expecting this
    <date>2005-10-25</date>
    getting this
    ORA-31011: XML parsing failed
    tried this:
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MM-YYYY'
    result: session altered
    tried re-running select query, but same bad result.
    dbms_xmlgen,xmlagg and other commands run fine.
    i need to do this so that i can use special inline formatting such as this:
    <sa>
    <object class="asdad" name="asd">
    <attribute name="as">
    <string>asd</string>
    </attribute>
    </object>
    <object>
    </object>
    </sa>
    setformattype doesnt help in xmlgen since such format (<object class="asd" name="sad">) doesnt seem to be possible.
    YELP!
    is there a workaround possible without using xmlelement? what am i doing wrong in xmlelement??

    XML Element isn't part of XDK at all. It's a part of the SQL/XML publishing capability of XML DB. Can you make sure that you do not have something that is masquerading as XMLElement on your system
    Eg make sure you get this output
    SQL> desc XMLELEMENT
    ERROR:
    ORA-04043: object XMLELEMENT does not existIf something get's described by the describe please drop it..
    Can you try
    SQL>  select xmlElement("FOO",'baa') from dual;
    XMLELEMENT("FOO",'BAA')
    <FOO>baa</FOO>and
    SQL> select XMLFOREST('baa' as "FOO") from dual;
    XMLFOREST('BAA'AS"FOO")
    <FOO>baa</FOO>

  • 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,

  • 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

  • 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

  • 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

  • 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;

  • XML Parsing error: not well-formed (invalid token) (error code 4) --- Urgent Help Needed!

    Hi all, what im doing now is im trying to create a database connection my my MS SQL 2005 database. I created a data source and went to my Adobe Lifecycle Designer 7.1, i created a new data connection, selected OLEDB and created the connection string using the build function.
    Ok, now the problem is, after creating the new data connection and i click on the preview tab, i will receive the error stated above.
    'XML Parsing error: not well-formed (invalid token) (error code 4), line 444, column 1 of file'
    Does anyone know why am i receiving this error and how do i go about solving this?
    I need this database connection to pre-fill my form when the user downloads the form =(

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • 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.

  • Pls Help--- URGENT... Combining XML file and HTML file Using java program.

    Hi, I need to implemnt this for my project....
    I need to combine XML and HTML file and generate a new HTML file
    Sample XML File:
    <user>
    <txtName>sun</txtName>
    <txtAge>21 </txtAge>
    </user>
    Sample HTML File:
    <body>
    Name: <input type="text" name="txtName" value=""
    Age : <input type="text" Age="txtAge" value=""
    </body>
    I need a java program to combine the above xml and html files and generate the output in HTML.
    Any kind of help is sincerely Appreciated.
    Thanks.

    toucansam wrote:
    So you want us to write it for you? It's pretty straight forward, first parse the xml file with the *[best java xml parser|http://www.google.com/search?&q=parsing+xml+in+java]* and then go through the nodes and construct the html with strings and concatination. Then write the file using *[the best java file writer|http://www.google.com/search?hl=en&q=writing+to+a+file+in+java]*.
    He would do better to use existing tools that make this easy [http://www.ling.helsinki.fi/kit/2004k/ctl257/JavaXSLT/Ch05.html|http://www.ling.helsinki.fi/kit/2004k/ctl257/JavaXSLT/Ch05.html]

Maybe you are looking for

  • OracleJSP: oracle.jsp.provider.JspCompileException

    Hi, when i try to compile a report in web layout format in 10g DS R2, i get following error 500 Internal Server Error OracleJSP: oracle.jsp.provider.JspCompileException: Errors compiling:C:\Documents and Settings\Administrator\Local Settings\Temp\1\d

  • Shared Services directories definition, no more CSS.xml

    Hi, I am currently working with version 11.1.2.1 and I would like to access my MSAD directories definition, but it is not contained in CSS.xml as it used to be in version 9. I have searched all tables of the Shared Services relational database, and d

  • Oracle Unified Business Process Management Implementation Specialist  query

    Hi , I would like to know when will this exam go-live ? On oracle website , it is mentioned that the exam will go live 10 weeks after beta exams for the same end. Beta exams for Oracle UBPM 11g implementation specialist ended on may 7th , as per that

  • Cannot openInputStream on device

    Dear all, I've written a J2ME application for Sony Ericsson T610 that requests data from a servlet. In the emulator everything goes fine, but when I run it on the real device it throws an exception on "is.openInputStream" ! Since it runs fine in the

  • Long lasting Workspaces with many Rows, Merging and Locks

    Hi all! We sucessfully implemented a solution using Oracle Workspace Manager combined with Oracle Locator (Spatial). The present version of our product uses Workspace Manager to enbale "private working areas" for the users. They can edit data in this