Please help to read the XML document with XMLTable

Hi Gurus,
I am not very familiar with XML parsing. It seems to me it should be very easy to get the data. For some reason, I am having a problem to get the data.
SELECT *
FROM util.hlsr_online_entries e,
XMLTABLE(
  xmlnamespaces(
   'http://tempuri.org/'    as "dt",
   'urn:schemas-microsoft-com:xml-diffgram-v1' as "dg"),
  '/DataTable/dg:diffgram/DocumentElement/JrShowCustomerHeifers'
  PASSING XMLTYPE(e.entry_data)
  COLUMNS
  SeqNo  FOR ORDINALITY,
  DocumentID NUMBER  PATH 'DocumentID',
  ClubName VARCHAR2(100) PATH 'ClubName') as test
WHERE e.ref_id = 33422
The above query does not bring any data for me. My hunts is the problem with DocumentElement tab. I have been trying a different variation to handle.
Please help me out to tune the query
I have the following XML document from the DotNet developer
<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://tempuri.org/">
  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="JrShowCustomerHeifers" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="JrShowCustomerHeifers">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="DocumentID" type="xs:int" minOccurs="0" />
                <xs:element name="ClubName" type="xs:string" minOccurs="0" />
                <xs:element name="LastName" type="xs:string" minOccurs="0" />
                <xs:element name="FirstName" type="xs:string" minOccurs="0" />
                <xs:element name="PreferredName" type="xs:string" minOccurs="0" />
                <xs:element name="Email" type="xs:string" minOccurs="0" />
                <xs:element name="Exhibitor" type="xs:string" minOccurs="0" />
                <xs:element name="AnimalName" type="xs:string" minOccurs="0" />
                <xs:element name="RegistryNo" type="xs:string" minOccurs="0" />
                <xs:element name="DateofBirth" type="xs:string" minOccurs="0" />
                <xs:element name="NameofSire" type="xs:string" minOccurs="0" />
                <xs:element name="SireRegistryNo" type="xs:string" minOccurs="0" />
                <xs:element name="NameofDam" type="xs:string" minOccurs="0" />
                <xs:element name="DamRegistryNo" type="xs:string" minOccurs="0" />
                <xs:element name="Tattoo" type="xs:string" minOccurs="0" />
                <xs:element name="SecondaryTattoo" type="xs:string" minOccurs="0" />
                <xs:element name="UniversalIDNumber" type="xs:string" minOccurs="0" />
                <xs:element name="Tattoo_Location" type="xs:string" minOccurs="0" />
                <xs:element name="Secondary_Tattoo_Location" type="xs:string" minOccurs="0" />
                <xs:element name="OracleBreedID" type="xs:int" minOccurs="0" />
                <xs:element name="JrValidationBreedName" type="xs:string" minOccurs="0" />
                <xs:element name="ValidationDate" type="xs:dateTime" minOccurs="0" />
                <xs:element name="ValidatedBy" type="xs:string" minOccurs="0" />
                <xs:element name="ValidationComment" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    <DocumentElement xmlns="">
      <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers1" msdata:rowOrder="0">
        <DocumentID>18442</DocumentID>
        <ClubName>Perrin FFA</ClubName>
        <LastName>Hamman</LastName>
        <FirstName>Kaily</FirstName>
        <Email>[email protected]</Email>
        <Exhibitor>Hamman, Kaily</Exhibitor>
        <AnimalName>113</AnimalName>
        <RegistryNo>C1026447</RegistryNo>
        <DateofBirth>01/14/2013</DateofBirth>
        <NameofSire>808 GAME DAY 808 LH</NameofSire>
        <SireRegistryNo>C961101</SireRegistryNo>
        <NameofDam>SADDIE 7/7 LE</NameofDam>
        <DamRegistryNo>C941067</DamRegistryNo>
        <Tattoo>113</Tattoo>
        <SecondaryTattoo />
        <UniversalIDNumber>1194F020</UniversalIDNumber>
        <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
        <Secondary_Tattoo_Location />
        <OracleBreedID>6383</OracleBreedID>
        <JrValidationBreedName>Beefmaster</JrValidationBreedName>
        <ValidationDate>2014-11-25T08:39:00-06:00</ValidationDate>
        <ValidatedBy>laineyb</ValidatedBy>
        <ValidationComment />
      </JrShowCustomerHeifers>
      <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers2" msdata:rowOrder="1">
        <DocumentID>18473</DocumentID>
        <ClubName>Perrin FFA</ClubName>
        <LastName>Hamman</LastName>
        <FirstName>Kaily</FirstName>
        <Email>[email protected]</Email>
        <Exhibitor>Hamman, Kaily</Exhibitor>
        <AnimalName>KPH PURPLE CORALEE 349</AnimalName>
        <RegistryNo>P43461953</RegistryNo>
        <DateofBirth>11/04/2013</DateofBirth>
        <NameofSire>PURPLE MOXY 22X ET</NameofSire>
        <SireRegistryNo>P43126458</SireRegistryNo>
        <NameofDam>TCC CORKY 6603</NameofDam>
        <DamRegistryNo>P42457119</DamRegistryNo>
        <Tattoo>349</Tattoo>
        <SecondaryTattoo>KPH</SecondaryTattoo>
        <UniversalIDNumber>1194F021</UniversalIDNumber>
        <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
        <Secondary_Tattoo_Location>TATTOO - Right Ear</Secondary_Tattoo_Location>
        <OracleBreedID>6389</OracleBreedID>
        <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
        <ValidationDate>2014-12-01T11:55:00-06:00</ValidationDate>
        <ValidatedBy>Hannah</ValidatedBy>
        <ValidationComment />
      </JrShowCustomerHeifers>
      <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers3" msdata:rowOrder="2">
        <DocumentID>18474</DocumentID>
        <ClubName>Perrin FFA</ClubName>
        <LastName>Hamman</LastName>
        <FirstName>Kaily</FirstName>
        <Email>[email protected]</Email>
        <Exhibitor>Hamman, Kaily</Exhibitor>
        <AnimalName>LANGFORDS SWEET N SOUR 4107</AnimalName>
        <RegistryNo>43504761</RegistryNo>
        <DateofBirth>03/02/2014</DateofBirth>
        <NameofSire>LH TNT 1017</NameofSire>
        <SireRegistryNo>43199794</SireRegistryNo>
        <NameofDam>LANGFORDS LADY 2206 ET</NameofDam>
        <DamRegistryNo>43315143</DamRegistryNo>
        <Tattoo>4107</Tattoo>
        <SecondaryTattoo />
        <UniversalIDNumber>1194F018</UniversalIDNumber>
        <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
        <Secondary_Tattoo_Location />
        <OracleBreedID>6398</OracleBreedID>
        <JrValidationBreedName>Hereford</JrValidationBreedName>
        <ValidationDate>2014-11-24T14:26:00-06:00</ValidationDate>
        <ValidatedBy>Validator</ValidatedBy>
        <ValidationComment />
      </JrShowCustomerHeifers>
      <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers4" msdata:rowOrder="3">
        <DocumentID>18475</DocumentID>
        <ClubName>Perrin FFA</ClubName>
        <LastName>Hamman</LastName>
        <FirstName>Kaily</FirstName>
        <Email>[email protected]</Email>
        <Exhibitor>Hamman, Kaily</Exhibitor>
        <AnimalName>PURPLE CCC LYDIA 19A</AnimalName>
        <RegistryNo>P43406978</RegistryNo>
        <DateofBirth>02/05/2013</DateofBirth>
        <NameofSire>PURPLE MB WOMANIZER 14UET</NameofSire>
        <SireRegistryNo>P42945146</SireRegistryNo>
        <NameofDam>PURPLE CMCC NASTIA 9U</NameofDam>
        <DamRegistryNo>P42927201</DamRegistryNo>
        <Tattoo>19A</Tattoo>
        <SecondaryTattoo />
        <UniversalIDNumber>1194F017</UniversalIDNumber>
        <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
        <Secondary_Tattoo_Location />
        <OracleBreedID>6389</OracleBreedID>
        <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
        <ValidationDate>2014-12-01T11:55:00-06:00</ValidationDate>
        <ValidatedBy>Hannah</ValidatedBy>
        <ValidationComment />
      </JrShowCustomerHeifers>
      <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers5" msdata:rowOrder="4">
        <DocumentID>18477</DocumentID>
        <ClubName>Perrin FFA</ClubName>
        <LastName>Hamman</LastName>
        <FirstName>Kaily</FirstName>
        <Email>[email protected]</Email>
        <Exhibitor>Hamman, Kaily</Exhibitor>
        <AnimalName>PURPLE SGW EDEN 12B</AnimalName>
        <RegistryNo>P43521932</RegistryNo>
        <DateofBirth>04/02/2014</DateofBirth>
        <NameofSire>RST TIME'S A WASTIN' 0124</NameofSire>
        <SireRegistryNo>43123163</SireRegistryNo>
        <NameofDam>PURPLE SM WONDER WOMAN 160Y</NameofDam>
        <DamRegistryNo>P43235169</DamRegistryNo>
        <Tattoo>12B</Tattoo>
        <SecondaryTattoo>12B</SecondaryTattoo>
        <UniversalIDNumber>1194F015</UniversalIDNumber>
        <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
        <Secondary_Tattoo_Location>TATTOO - Right Ear</Secondary_Tattoo_Location>
        <OracleBreedID>6389</OracleBreedID>
        <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
        <ValidationDate>2014-12-01T11:56:00-06:00</ValidationDate>
        <ValidatedBy>Hannah</ValidatedBy>
        <ValidationComment />
      </JrShowCustomerHeifers>
    </DocumentElement>
  </diffgr:diffgram>
</DataTable>

Hi odie_63,
Good evening. I am not sure what you are suggesting. Please provide me the example how to solve the problem. I am very new to XML parsing.
In the meantime, I am having another problem to get the data because .net developer changes the webservice format. To me it is supposed to work fine. May be my eyes are getting blurred so, I can't see where I am wrong.
Thanks in advance. Please help me out.
SELECT exh.docid,exh.clubname,exh.lname,exh.fname,exh.exhibitor,exh.animalname
FROM util.hlsr_online_entries e,
XMLTABLE(
  xmlnamespaces(
   'http://webservices.hlsr.net/JrShowOracleService/' as "dt",
   'urn:schemas-microsoft-com:xml-diffgram-v1'  as "dg"),
  '/dt:GetJrShowCustomerHeifersResponse/GetJrShowCustomerHeifersResult/dg:diffgram/DocumentElement/JrShowCustomerHeifers'
  PASSING XMLTYPE(e.entry_data)
  COLUMNS
  SeqNo  FOR ORDINALITY,
  DocID  NUMBER  PATH 'DocumentID',
  ClubName VARCHAR2(100) PATH 'ClubName',
  LName  VARCHAR2(100) PATH 'LastName',
  FName  VARCHAR2(100) PATH 'FirstName',
  Email  VARCHAR2(100) PATH 'Email',
  Exhibitor VARCHAR2(100) PATH 'Exhibitor',
  AnimalName VARCHAR2(100) PATH 'AnimalName', 
  RegNo  VARCHAR2(100) PATH 'RegistryNo',
  DOB  VARCHAR2(100) PATH 'DateofBirth',
  SireName VARCHAR2(100) PATH 'NameofSire',
  SireRegNo VARCHAR2(100) PATH 'SireRegistryNo',
  Dam  VARCHAR2(100) PATH 'NameofDam',
  DamRegNo VARCHAR2(100) PATH 'DamRegistryNo',
  Tattoo  VARCHAR2(100) PATH 'Tattoo',
  SecTattoo VARCHAR2(100) PATH 'SecondaryTattoo',
  UnivIDNum VARCHAR2(100) PATH 'UniversalIDNumber',
  TattooLoc VARCHAR2(100) PATH 'Tattoo_Location',
  OraBreedID NUMBER  PATH 'OracleBreedID',
  Breed  VARCHAR2(100) PATH 'JrValidationBreedName',
  ValDate  VARCHAR2(100) PATH 'ValidationDate'
  ) as exh
WHERE e.ref_id = 33432
<GetJrShowCustomerHeifersResponse xmlns="http://webservices.hlsr.net/JrShowOracleService/">
  <GetJrShowCustomerHeifersResult>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="JrShowCustomerHeifers" msdata:UseCurrentLocale="true">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element name="JrShowCustomerHeifers">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentID" type="xs:int" minOccurs="0"/>
                  <xs:element name="ClubName" type="xs:string" minOccurs="0"/>
                  <xs:element name="LastName" type="xs:string" minOccurs="0"/>
                  <xs:element name="FirstName" type="xs:string" minOccurs="0"/>
                  <xs:element name="PreferredName" type="xs:string" minOccurs="0"/>
                  <xs:element name="Email" type="xs:string" minOccurs="0"/>
                  <xs:element name="Exhibitor" type="xs:string" minOccurs="0"/>
                  <xs:element name="AnimalName" type="xs:string" minOccurs="0"/>
                  <xs:element name="RegistryNo" type="xs:string" minOccurs="0"/>
                  <xs:element name="DateofBirth" type="xs:string" minOccurs="0"/>
                  <xs:element name="NameofSire" type="xs:string" minOccurs="0"/>
                  <xs:element name="SireRegistryNo" type="xs:string" minOccurs="0"/>
                  <xs:element name="NameofDam" type="xs:string" minOccurs="0"/>
                  <xs:element name="DamRegistryNo" type="xs:string" minOccurs="0"/>
                  <xs:element name="Tattoo" type="xs:string" minOccurs="0"/>
                  <xs:element name="SecondaryTattoo" type="xs:string" minOccurs="0"/>
                  <xs:element name="UniversalIDNumber" type="xs:string" minOccurs="0"/>
                  <xs:element name="Tattoo_Location" type="xs:string" minOccurs="0"/>
                  <xs:element name="Secondary_Tattoo_Location" type="xs:string" minOccurs="0"/>
                  <xs:element name="OracleBreedID" type="xs:int" minOccurs="0"/>
                  <xs:element name="JrValidationBreedName" type="xs:string" minOccurs="0"/>
                  <xs:element name="ValidationDate" type="xs:string" minOccurs="0"/>
                  <xs:element name="ValidatedBy" type="xs:string" minOccurs="0"/>
                  <xs:element name="ValidationComment" type="xs:string" minOccurs="0"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
      <DocumentElement xmlns="">
        <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers1" msdata:rowOrder="0">
          <DocumentID>18442</DocumentID>
          <ClubName>Perrin FFA</ClubName>
          <LastName>Hamman</LastName>
          <FirstName>Kaily</FirstName>
          <Email>[email protected]</Email>
          <Exhibitor>Hamman, Kaily</Exhibitor>
          <AnimalName>113</AnimalName>
          <RegistryNo>C1026447</RegistryNo>
          <DateofBirth>01/14/2013</DateofBirth>
          <NameofSire>808 GAME DAY 808 LH</NameofSire>
          <SireRegistryNo>C961101</SireRegistryNo>
          <NameofDam>SADDIE 7/7 LE</NameofDam>
          <DamRegistryNo>C941067</DamRegistryNo>
          <Tattoo>113</Tattoo>
          <SecondaryTattoo/>
          <UniversalIDNumber>1194F020</UniversalIDNumber>
          <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
          <Secondary_Tattoo_Location/>
          <OracleBreedID>6383</OracleBreedID>
          <JrValidationBreedName>Beefmaster</JrValidationBreedName>
          <ValidationDate>11/25/2014</ValidationDate>
          <ValidatedBy>laineyb</ValidatedBy>
          <ValidationComment/>
        </JrShowCustomerHeifers>
        <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers2" msdata:rowOrder="1">
          <DocumentID>18473</DocumentID>
          <ClubName>Perrin FFA</ClubName>
          <LastName>Hamman</LastName>
          <FirstName>Kaily</FirstName>
          <Email>[email protected]</Email>
          <Exhibitor>Hamman, Kaily</Exhibitor>
          <AnimalName>KPH PURPLE CORALEE 349</AnimalName>
          <RegistryNo>P43461953</RegistryNo>
          <DateofBirth>11/04/2013</DateofBirth>
          <NameofSire>PURPLE MOXY 22X ET</NameofSire>
          <SireRegistryNo>P43126458</SireRegistryNo>
          <NameofDam>TCC CORKY 6603</NameofDam>
          <DamRegistryNo>P42457119</DamRegistryNo>
          <Tattoo>349</Tattoo>
          <SecondaryTattoo>KPH</SecondaryTattoo>
          <UniversalIDNumber>1194F021</UniversalIDNumber>
          <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
          <Secondary_Tattoo_Location>TATTOO - Right Ear</Secondary_Tattoo_Location>
          <OracleBreedID>6389</OracleBreedID>
          <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
          <ValidationDate>12/01/2014</ValidationDate>
          <ValidatedBy>Hannah</ValidatedBy>
          <ValidationComment/>
        </JrShowCustomerHeifers>
        <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers3" msdata:rowOrder="2">
          <DocumentID>18474</DocumentID>
          <ClubName>Perrin FFA</ClubName>
          <LastName>Hamman</LastName>
          <FirstName>Kaily</FirstName>
          <Email>[email protected]</Email>
          <Exhibitor>Hamman, Kaily</Exhibitor>
          <AnimalName>LANGFORDS SWEET N SOUR 4107</AnimalName>
          <RegistryNo>43504761</RegistryNo>
          <DateofBirth>03/02/2014</DateofBirth>
          <NameofSire>LH TNT 1017</NameofSire>
          <SireRegistryNo>43199794</SireRegistryNo>
          <NameofDam>LANGFORDS LADY 2206 ET</NameofDam>
          <DamRegistryNo>43315143</DamRegistryNo>
          <Tattoo>4107</Tattoo>
          <SecondaryTattoo/>
          <UniversalIDNumber>1194F018</UniversalIDNumber>
          <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
          <Secondary_Tattoo_Location/>
          <OracleBreedID>6398</OracleBreedID>
          <JrValidationBreedName>Hereford</JrValidationBreedName>
          <ValidationDate>11/24/2014</ValidationDate>
          <ValidatedBy>Validator</ValidatedBy>
          <ValidationComment/>
        </JrShowCustomerHeifers>
        <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers4" msdata:rowOrder="3">
          <DocumentID>18475</DocumentID>
          <ClubName>Perrin FFA</ClubName>
          <LastName>Hamman</LastName>
          <FirstName>Kaily</FirstName>
          <Email>[email protected]</Email>
          <Exhibitor>Hamman, Kaily</Exhibitor>
          <AnimalName>PURPLE CCC LYDIA 19A</AnimalName>
          <RegistryNo>P43406978</RegistryNo>
          <DateofBirth>02/05/2013</DateofBirth>
          <NameofSire>PURPLE MB WOMANIZER 14UET</NameofSire>
          <SireRegistryNo>P42945146</SireRegistryNo>
          <NameofDam>PURPLE CMCC NASTIA 9U</NameofDam>
          <DamRegistryNo>P42927201</DamRegistryNo>
          <Tattoo>19A</Tattoo>
          <SecondaryTattoo/>
          <UniversalIDNumber>1194F017</UniversalIDNumber>
          <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
          <Secondary_Tattoo_Location/>
          <OracleBreedID>6389</OracleBreedID>
          <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
          <ValidationDate>12/01/2014</ValidationDate>
          <ValidatedBy>Hannah</ValidatedBy>
          <ValidationComment/>
        </JrShowCustomerHeifers>
        <JrShowCustomerHeifers diffgr:id="JrShowCustomerHeifers5" msdata:rowOrder="4">
          <DocumentID>18477</DocumentID>
          <ClubName>Perrin FFA</ClubName>
          <LastName>Hamman</LastName>
          <FirstName>Kaily</FirstName>
          <Email>[email protected]</Email>
          <Exhibitor>Hamman, Kaily</Exhibitor>
          <AnimalName>PURPLE SGW EDEN 12B</AnimalName>
          <RegistryNo>P43521932</RegistryNo>
          <DateofBirth>04/02/2014</DateofBirth>
          <NameofSire>RST TIME&apos;S A WASTIN&apos; 0124</NameofSire>
          <SireRegistryNo>43123163</SireRegistryNo>
          <NameofDam>PURPLE SM WONDER WOMAN 160Y</NameofDam>
          <DamRegistryNo>P43235169</DamRegistryNo>
          <Tattoo>12B</Tattoo>
          <SecondaryTattoo>12B</SecondaryTattoo>
          <UniversalIDNumber>1194F015</UniversalIDNumber>
          <Tattoo_Location>TATTOO - Left Ear</Tattoo_Location>
          <Secondary_Tattoo_Location>TATTOO - Right Ear</Secondary_Tattoo_Location>
          <OracleBreedID>6389</OracleBreedID>
          <JrValidationBreedName>Polled Hereford</JrValidationBreedName>
          <ValidationDate>12/01/2014</ValidationDate>
          <ValidatedBy>Hannah</ValidatedBy>
          <ValidationComment/>
        </JrShowCustomerHeifers>
      </DocumentElement>
    </diffgr:diffgram>
  </GetJrShowCustomerHeifersResult>
</GetJrShowCustomerHeifersResponse>
Thanks again.

Similar Messages

  • Please help; how to write XML document with JSP?

    I try to write XML document with JSP...
    But I got wrong results everytime.
    The result is not XML file displayed in the browser,
    but HTML file.
    I even tried to use HTML special code for <, >, "
    but still display as HTML file not XML file.
    How to do this?
    Thanks in advance. I put my codes below.
    Sincerely,
    Ted.
    ================
    Here is code for the JSP (called stk.jsp):
    <%@ page contentType="text/xml" %>
    <%@ page import="bean.Stock" %>
    <jsp:useBean id="portfolio" class="bean.Portfolio" />
    <% java.util.Iterator pfolio = portfolio.getPortfolio();
    Stock stock = null; %>
    <?xml version="1.0" encoding="UTF-8"?>
    <portfolio>
    <% while (pfolio.hasNext())
    stock = (Stock) pfolio.next(); %>
    <stock>
    <symbol>
    <%=stock.getSymbol() %>
    </symbol>
    <name><%=stock.getName() %> </name>
    <price><%=stock.getPrice() %> </price>
    </stock>
    <% } %>
    </portfolio>
    =================
    Here is the code for bean.Stock:
    package bean;
    public class Stock implements java.io.Serializable
    String symbol, name;
    float price;
    public Stock(String symbol, String name, float price)
    this.symbol = symbol;
    this.name = name;
    this.price = price;
    public String getSymbol()
    return symbol;
    public String getName()
    return name;
    public float getPrice()
    return price;
    ===============
    And here is bean.Portfolio:
    package bean;
    import java.util.Iterator;
    import java.util.Vector;
    public class Portfolio implements java.io.Serializable
    private Vector portfolio = new Vector();
    public Portfolio()
    portfolio.addElement(new Stock("SUNW", "Sun Microsystem", 34.5f));
    portfolio.addElement(new Stock("HWP", "Hewlett Packard", 15.15f));
    portfolio.addElement(new Stock("AMCC", "Applied Micro Circuit Corp.", 101.35f));
    public Iterator getPortfolio()
    return portfolio.iterator();
    }

    Hi
    I'm not sure whta your query is but I tested your code as it is has been pasted and it seems to work fine. There is an XML output that I'm getting.
    Keep me posted.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • I can't read the pdf documents with iBook in my MacBookPro. The documents can't be opened. Please, help me

    I have more than 2500 pdf documents in my MacBookPro, but I can't open them with iBooks. I don't know what happens. The iBooks worked properly until my upgrade to Yosemite. Is now a problem using Yosemite?

    Same issue! I open my PDF in iBooks 1.1, but it open with Preview.
    I like to read ebook with iBook, please fix the bug.

  • Please help me resolve the many problems with my airport extreme

    Dear Community,
    My Apple Airport Extreme has never worked properly out of the box and I do not understand why. I must be doing something wrong. It is replacing a series of Linksys products which integrated with several Linux and Windows machines, and they worked flawlessly.
    Problem (1):
    Extreme crashes/reboots every now and then, especially when I try to send a lot of data from one machine to another. I assume that I am sending too much data then, and would like to know how I can slow down my data transmission so as to not hurt the Extreme.
    Problem (2):
    Airport Extreme when restarting either on its own or through the software refuses to let previously connected clients reconnect. The problem is probably because of of Windows XP, Windows Vista, and Linux. This causes major networking issues as each individual machine must have its network layer restarted or be rebooted. So I would like to know what I can do to work around these problems in the operating systems.
    Problem (3):
    Airport Utility after a spontaneous dropping of all connections by the Extreme is unable to find "any base stations within range" (it is connected to the base station by Ethernet). Base station and computer were both power cycled, problem remains. Perhaps my ethernet cable is too long and this has made the base station "out of range?"
    Problem (4):
    Apple claimed that I would be able to use a USB 2.0 disk on the Extreme to do backups. When I plug in the USB disk as advertised, the transfer rate is 12% of its transfer rate when plugged into any other hardware. Please let me know which configuration options I need to set on the disk in order to obtain full data transfer rates that will allow me to back up several networked machines in a reasonable timeframe (i.e. less than 3 days).
    Problem (5):
    Please describe to me how to connect to the router with a web browser. Every other router I have worked with allows me to connect with a web browser, and since the Apple software refuses to connect to the base station I am no longer able to configure it as I do not own a shorter ethernet cable that will bring the base station within range of the computer. Since the apple software does not take any obvious arguments that allow me to specify the IP address of the base station, my only conclusion is that I am supposed to use a web browser which will take an IP address to connect. However, when I do this, I get a "page load error." I am confused, because I was told this is an extreme unit, so I thought it had at least industry standard features, therefore I must be the one doing something wrong.
    Your assistance is much appreciated.

    Problems 1 through 4 are the topic of many (often long) past discussions in this forum. Though I hate to say it, I have yet to see anything that comes close to a "solution" for the problems you describe. Sometimes, Problem #3 results from radio interference which might be alleviated by changing the default channel the base station transmits on.
    Unlike every non-Apple router on the market, Apple's Airport Base Station must be configured using Apple's own "Airport Utility" software application. It is not possible to configure an Airport Base Station using a web browser.
    Regrettably, in your case it sounds like you would be better off continuing to use your previous Linksys wireless router.

  • How to read a xml file with StringReader class

    Hi,
    I need to read a XML document with StringReade class. My aplication receives an absolute path but this doesn't work:
    StringReader oStringReader =
    new StringReader(c:\java\libros.xml);
    However it works with:
    StringReader oStringReader =
    new StringReader("<?xml version="1.0" e......");
    ie, with the whole document as a String, but I need to do it as the frist way.
    Thanks

    Hi,
    I need to read a XML document with StringReade class.
    My aplication receives an absolute path but this
    doesn't work:
    StringReader oStringReader =
    new StringReader(c:\java\libros.xml);
    However it works with:
    StringReader oStringReader =
    new StringReader("<?xml version="1.0" e......");
    ie, with the whole document as a String, but I need
    to do it as the frist way.
    Thankstake a look at this link:
    http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/sax/2a_echo.html

  • The XML document builds on itself when called twice. Help!!!

    When I run the Sample program for the Oracle classgen for Java
    the XML document node repeats itself when called the second
    time. This is what I mean:
    import oracle.xml.classgen.*;
    import oracle.xml.parser.*;
    public class TestWidl
    static WIDL w1 = new WIDL();
    public static void main (String args[])
    test();
    test();
    static void test ()
    try
    DTD dtd = w1.getDTDNode();
    w1.setNAME("WIDL1");
    w1.setVERSION(WIDL.VERSION_1_0);
    SERVICE s1 = new SERVICE("Service1", "Service_URL");
    s1.setINPUT("File");
    s1.setOUTPUT("File");
    BINDING b1 = new BINDING("Binding1");
    b1.setTYPE(BINDING.TYPE_INPUT);
    BINDING b2 = new BINDING("Binding2");
    b2.setTYPE(BINDING.TYPE_OUTPUT);
    VARIABLE v1 = new VARIABLE("Variable1",
    VARIABLE.NULLOK_FALSE);
    v1.setTYPE(VARIABLE.TYPE_STRING);
    v1.setUSAGE(VARIABLE.USAGE_INTERNAL);
    v1.setVALUE("value");
    VARIABLE v2 = new VARIABLE("Variable2",
    VARIABLE.NULLOK_TRUE);
    v2.setTYPE(VARIABLE.TYPE_STRING1);
    v2.setUSAGE(VARIABLE.USAGE_HEADER);
    VARIABLE v3 = new VARIABLE("Variable3",
    VARIABLE.NULLOK_FALSE);
    v3.setTYPE(VARIABLE.TYPE_STRING2);
    v3.setUSAGE(VARIABLE.USAGE_FUNCTION);
    v3.setMASK("mask");
    CONDITION c1 = new CONDITION("CRef1", "CMatch1");
    c1.setSERVICE("Service1");
    c1.setTYPE(CONDITION.TYPE_SUCCESS);
    CONDITION c2 = new CONDITION("CRef2", "CMatch2");
    c2.setTYPE(CONDITION.TYPE_RETRY);
    CONDITION c3 = new CONDITION("CRef3", "CMatch3");
    c3.setSERVICE("Service3");
    c3.setTYPE(CONDITION.TYPE_FAILURE);
    REGION r1 = new REGION("Region1", "Start", "End");
    b1.addNode(r1);
    b1.addNode(v1);
    b1.addNode(c1);
    b1.addNode(v2);
    b2.addNode(c2);
    b2.addNode(v3);
    w1.addNode(s1);
    w1.addNode(b1);
    w1.addNode(b2);
    w1.validateContent();
    w1.print(System.out);
    catch (Exception e)
    System.out.println(e.toString());
    e.printStackTrace();
    The XML output looks like this:
    First Call to test():
    <?xml version = '1.0' encoding = 'ASCII'?>
    <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    <WIDL NAME="WIDL1" VERSION="1.0">
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    </WIDL>
    Second Call to test:
    Please note how service1 repeats itself. I would expect that
    the XML string would look like the first output:
    How can I fix this??
    <?xml version = '1.0' encoding = 'ASCII'?>
    <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    <WIDL NAME="WIDL1" VERSION="1.0">
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    OUTPUT="File"/>
    <BINDING NAME="Binding1" TYPE="Input">
    <REGION NAME="Region1" START="Start" END="End"/>
    <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    USAGE="Internal" VALUE="value"/>
    <CONDITION REF="CRef1" MATCH="CMatch1" SERVICE="Service1"
    TYPE="Success"/>
    <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    USAGE="Header"/>
    </BINDING>
    <BINDING NAME="Binding2" TYPE="Output">
    <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    USAGE="Function" MASK="mask"/>
    </BINDING>
    </WIDL>
    Any Help is appreciated.
    Hector.
    null

    Hector Miranda (guest) wrote:
    : When I run the Sample program for the Oracle classgen for Java
    : the XML document node repeats itself when called the second
    : time. This is what I mean:
    : import oracle.xml.classgen.*;
    : import oracle.xml.parser.*;
    : public class TestWidl
    : static WIDL w1 = new WIDL();
    : public static void main (String args[])
    : test();
    : test();
    : static void test ()
    : try
    : DTD dtd = w1.getDTDNode();
    : w1.setNAME("WIDL1");
    : w1.setVERSION(WIDL.VERSION_1_0);
    : SERVICE s1 = new SERVICE("Service1", "Service_URL");
    : s1.setINPUT("File");
    : s1.setOUTPUT("File");
    : BINDING b1 = new BINDING("Binding1");
    : b1.setTYPE(BINDING.TYPE_INPUT);
    : BINDING b2 = new BINDING("Binding2");
    : b2.setTYPE(BINDING.TYPE_OUTPUT);
    : VARIABLE v1 = new VARIABLE("Variable1",
    : VARIABLE.NULLOK_FALSE);
    : v1.setTYPE(VARIABLE.TYPE_STRING);
    : v1.setUSAGE(VARIABLE.USAGE_INTERNAL);
    : v1.setVALUE("value");
    : VARIABLE v2 = new VARIABLE("Variable2",
    : VARIABLE.NULLOK_TRUE);
    : v2.setTYPE(VARIABLE.TYPE_STRING1);
    : v2.setUSAGE(VARIABLE.USAGE_HEADER);
    : VARIABLE v3 = new VARIABLE("Variable3",
    : VARIABLE.NULLOK_FALSE);
    : v3.setTYPE(VARIABLE.TYPE_STRING2);
    : v3.setUSAGE(VARIABLE.USAGE_FUNCTION);
    : v3.setMASK("mask");
    : CONDITION c1 = new CONDITION("CRef1", "CMatch1");
    : c1.setSERVICE("Service1");
    : c1.setTYPE(CONDITION.TYPE_SUCCESS);
    : CONDITION c2 = new CONDITION("CRef2", "CMatch2");
    : c2.setTYPE(CONDITION.TYPE_RETRY);
    : CONDITION c3 = new CONDITION("CRef3", "CMatch3");
    : c3.setSERVICE("Service3");
    : c3.setTYPE(CONDITION.TYPE_FAILURE);
    : REGION r1 = new REGION("Region1", "Start", "End");
    : b1.addNode(r1);
    : b1.addNode(v1);
    : b1.addNode(c1);
    : b1.addNode(v2);
    : b2.addNode(c2);
    : b2.addNode(v3);
    : w1.addNode(s1);
    : w1.addNode(b1);
    : w1.addNode(b2);
    : w1.validateContent();
    : w1.print(System.out);
    : catch (Exception e)
    : System.out.println(e.toString());
    : e.printStackTrace();
    : The XML output looks like this:
    : First Call to test():
    : <?xml version = '1.0' encoding = 'ASCII'?>
    : <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    : <WIDL NAME="WIDL1" VERSION="1.0">
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : </WIDL>
    : Second Call to test:
    : Please note how service1 repeats itself. I would expect that
    : the XML string would look like the first output:
    : How can I fix this??
    : <?xml version = '1.0' encoding = 'ASCII'?>
    : <!DOCTYPE WIDL SYSTEM "file:/home/hmiranda/tmp/WIDL_dtd.txt">
    : <WIDL NAME="WIDL1" VERSION="1.0">
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : <SERVICE NAME="Service1" URL="Service_URL" INPUT="File"
    : OUTPUT="File"/>
    : <BINDING NAME="Binding1" TYPE="Input">
    : <REGION NAME="Region1" START="Start" END="End"/>
    : <VARIABLE NAME="Variable1" NULLOK="False" TYPE="String"
    : USAGE="Internal" VALUE="value"/>
    : <CONDITION REF="CRef1" MATCH="CMatch1"
    SERVICE="Service1"
    : TYPE="Success"/>
    : <VARIABLE NAME="Variable2" NULLOK="True" TYPE="String1"
    : USAGE="Header"/>
    : </BINDING>
    : <BINDING NAME="Binding2" TYPE="Output">
    : <CONDITION REF="CRef2" MATCH="CMatch2" TYPE="Retry"/>
    : <VARIABLE NAME="Variable3" NULLOK="False" TYPE="String2"
    : USAGE="Function" MASK="mask"/>
    : </BINDING>
    : </WIDL>
    : Any Help is appreciated.
    : Hector.
    Move
    WIDL w1 = new WIDL();
    out of test() and modify it as
    public class TestWidl
    static WIDL w1 = new WIDL(); ...
    and this will work.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Many, many thanks for both of you Todd and Rick.
    to Rick:
    I suppose you mean the Color Settings in Project Settings as follows:
    - Working Space: None
    - Match Legacy ... Gamma Adjustments checked ON
    But it does not correct the colors in effects. And checking or unchecking Make Movie/Output Module Settings/Color Management/Profile/Preserve RGB does not make any difference.
    to both of you:
    Those parts of the video image that does not have color effects are just fine. In these parts the color is preserved when reimporting to FCP. However, those parts having color effects (except Levels, as decribed earlier) have altered color results. So, only the parts having effects affecting color are misinterpreted in the image area. The mismatch is of course seen in AE, before making the movie.
    What I ment with "Color Management not working properly" is that (instead of "disabling" it) Color Management does not seem to be able to correct this "misinterpretation" or difference in effect handling between AE 6 and 10.
    So, would you have any solution for this problem?
    Again, many thanks for your fast replies!

  • HT1386 my iphone does not sync with itunes on my second authorized computer, please help. i changed the first authorized computer in May 2012 and have been using the second authorized computer since then but it cannot sync - please help!!

    my iphone does not sync with itunes on my second authorized computer, please help. i changed the first authorized computer in May 2012 and have been using the second authorized computer since then but it cannot sync - please help!!

    "I was thinking I would just connect my iPhone and all of my music and other stuff would transfer to the new computer. "
    Not true. The music and pic sync is one way - computer to iphone. The only exception is itunes purchases. Without syncing: File>Transfer Purchases
    You really should transfer everything from the old computer, or your backup copy of your computer. Since you do not have access to the old computer, then use your backup copy of the old computer.
    If for some reason you have failed to maintain a backup copy of your computer ( not good), then you would have to transfer itunes purchased as described earlier. Any other itunes content would be lost.
    You can e-mail photo library pics to yourself, but they will not be of the original quality.
    Before syncing, enter at least one unique contact and calendar entry on the computer. When you first sync, then you should get the option to merge the data.

  • Hello to you all, my Macbook Air won's boot up and upon diagnosis, i realized my startup disk is full to 99% even with 2GB Hard Disk space. It wont also enable me boot into safe mode too. Please help as all my work documents and project files are on HD

    Hello to you all,
    My Macbook Air won's boot up and upon diagnosis, i realized my startup disk is full to 99% even with 2GB Hard Disk space. It wont also enable me boot into safe mode too.
    when i power up, i get this prolong gray screen which wont change screen but remain so. Infact i am handicapped.
    Please help as all my work documents and project files are on this machine and i can't afford to loose them all...
    Please, should you have any solution please send me the details to [email protected]
    Thanks you a millionh times.
    Al.

    The MBA seems to cause several problems to several users on boot ups
    On start up my MBA would not boot up the apple logo came on but only a blank screen appeared no fan i followed several start up recommendations but to no avail so I  took the MBA to the nearest Apple repair centre again the same symptoms on start up ......very sorry sir you need a new mother board that will be $500 not feeling confidant in the product declined and was going to put it on ebay for spares.
    On return home I pressed the start up button and it started normally everything was working fine i decided to reinstall all the software what has caused the problem I have no idea but it is after several attempted reboots it finally started on its own so don't give up if you have this problem it may come to life

  • Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!

    Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!
    My magazine last month is still working ok - but this month's version has just started crashing for some reason.

    We can't know. You have not provided any system info, not told us what version of ID you use nor provided any specifics about the document like images, color profiles, fonts, paragraph styles and what have you...
    Mylenium

  • Problem when trying to load an XML document with DTD or XML SCHEMA

    Hello
    I have tried to load an XML document in Data Services, and I created the xsd file and Dtd file. (With altova xml spy software automatically) to import into SAP Data Services 3.2. .
    In Data Services I created the dtd import file DTD and then called the XML file from the DTD (the xml file is validated vs the dtd file), and I could not read the xml correctly because it tells me that an ELEMENT called <item> expected joiners who did not come in the structure of import (dtd), but if the xml.
    I understand that the document root is the label: CUSTOMER_FULL_2014, the data flow is as follows:CARGA_XML_CUSTOMER |
    Turns out the joiners element is used to separate the xml elements are repeated, but is used at different levels. My idea is that the design will dtd second, or something I'm missing or is incorrectly stated.
    Thank you.
    xml
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <?xml version="1.0" encoding="utf-8"?>
    <CUSTOMER_FULL_2014>
      <item>
      <CUST_NO>202222</CUST_NO>
      <ADDRESS>
      <item>
      <SHIP_TO>202222</SHIP_TO>
      <NAME1>Henley.</NAME1>
      <STREET>Vitacura #40</STREET>
      <CITY>LIMA</CITY>
      </item>
      </ADDRESS>
      <EQUIPMENT>
      <item>
      <EQUI_NO>81623</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>81633</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>81993</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>82003</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>82013</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>82103</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>82113</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>581203</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>900003-EMER</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>9000033-STOCK</EQUI_NO>
      </item>
      </EQUIPMENT>
      <STORAGE_LOC>
      <item>
      <STOR_LOC_NO>0001</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      </item>
      <item>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 henley</DESCRIPTION>
      </item>
      </STORAGE_LOC>
      </item>
      <item>
      <CUST_NO>2007933434343</CUST_NO>
      <ADDRESS>
      <item>
      <SHIP_TO>2007933434343</SHIP_TO>
      <NAME1>Campos de Almacenaje SA</NAME1>
      <STREET>Calacoto2, Calle 1</STREET>
      <HOUSE_NO>Piso 1</HOUSE_NO>
      <CITY>La Paz</CITY>
      </item>
      </ADDRESS>
      <EQUIPMENT>
      <item>
      <EQUI_NO>90000-EMER</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>90000333-STOCK</EQUI_NO>
      </item>
      </EQUIPMENT>
      <STORAGE_LOC>
      <item>
      <STOR_LOC_NO>00012</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      </item>
      <item>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 henley</DESCRIPTION>
      </item>
      </STORAGE_LOC>
      </item>
      <item>
      <CUST_NO>200801333</CUST_NO>
      <ADDRESS>
      <item>
      <SHIP_TO>200801333</SHIP_TO>
      <NAME1>CONSTRUCTORA SA.</NAME1>
      <STREET>Ruta Panamericana Km 100</STREET>
      <CITY>San Antonio 23</CITY>
      </item>
      </ADDRESS>
      <EQUIPMENT>
      <item>
      <EQUI_NO>1507933</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>1509733</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>90000-EMER</EQUI_NO>
      </item>
      <item>
      <EQUI_NO>90000333-STOCK</EQUI_NO>
      </item>
      </EQUIPMENT>
      <STORAGE_LOC>
      <item>
      <STOR_LOC_NO>0001</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      </item>
      <item>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 henley</DESCRIPTION>
      </item>
      </STORAGE_LOC>
      </item>
    </CUSTOMER_FULL_2014>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ARCHIVO DTD CREADO (automáticamente con xml spy)
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- DTD generado con XMLSpy v2014 rel. 2 (x64) (http://www.altova.com) -->
    <!ELEMENT CITY (#PCDATA)>
    <!ELEMENT item ((SHIP_TO, NAME1, STREET, HOUSE_NO?, CITY) | (CUST_NO, ADDRESS, EQUIPMENT, STORAGE_LOC) | (STOR_LOC_NO, DESCRIPTION) | EQUI_NO)>
    <!ELEMENT NAME1 (#PCDATA)>
    <!ELEMENT STREET (#PCDATA)>
    <!ELEMENT ADDRESS (item)>
    <!ELEMENT CUST_NO (#PCDATA)>
    <!ELEMENT EQUI_NO (#PCDATA)>
    <!ELEMENT SHIP_TO (#PCDATA)>
    <!ELEMENT HOUSE_NO (#PCDATA)>
    <!ELEMENT EQUIPMENT (item+)>
    <!ELEMENT DESCRIPTION (#PCDATA)>
    <!ELEMENT STORAGE_LOC (item+)>
    <!ELEMENT STOR_LOC_NO (#PCDATA)>
    <!ELEMENT CUSTOMER_FULL_2014 (item+)>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    The error of MONITOR Data Services
    11676
    5184
    XML-240108
    11-04-2014 17:34:16
    |Data flow CARGA_XML_CUSTOMER|Reader READ MESSAGE customer OUTPUT(customer)
    11676
    5184
    XML-240108
    11-04-2014 17:34:16
    An element named <item> present in the XML data input does not exist in the XML format used to set up this XML source in data
    11676
    5184
    XML-240108
    11-04-2014 17:34:16
    flow <CARGA_XML_CUSTOMER>. Please validate your XML data.
    11676
    5184
    XML-240307
    11-04-2014 17:34:16
    |Data flow CARGA_XML_CUSTOMER|Reader READ MESSAGE customer OUTPUT(customer)
    11676
    5184
    XML-240307
    11-04-2014 17:34:16
    XML parser failed: See previously displayed error message.
    The Error from Monitor
    The metadata DTD
    Thanks
    Juan

    Hi Juan Juan,
    I generated a new XSD file using MS Visual Studio based on your XML file.
    The empty spaces in the source is replaced with <Null> in the target table.
    Here is the XSD:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="CUSTOMER_FULL_20140207_033015_001">
            <xs:complexType>
                <xs:sequence>
                    <xs:choice maxOccurs="unbounded">
                        <xs:element name="CUST_NO" type="xs:unsignedInt" />
                        <xs:element name="ADDRESS">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="SHIP_TO" type="xs:unsignedInt" />
                                    <xs:element name="NAME1" type="xs:string" />
                                    <xs:element name="STREET" type="xs:string" />
                                    <xs:element minOccurs="0" name="HOUSE_NO" type="xs:string" />
                                    <xs:element name="CITY" type="xs:string" />
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="EQUIPMENT">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element maxOccurs="unbounded" name="EQUI_NO" type="xs:string" />
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="STORAGE_LOC">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:choice maxOccurs="unbounded">
                                        <xs:element name="STOR_LOC_NO" type="xs:unsignedByte" />
                                        <xs:element name="DESCRIPTION" type="xs:string" />
                                    </xs:choice>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:choice>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    </xs:schema>
    For Source XML
    <?xml version="1.0" encoding="utf-8"?>
    <CUSTOMER_FULL_20140207_033015_001>
      <CUST_NO>200530</CUST_NO>
      <ADDRESS>
      <SHIP_TO>903533</SHIP_TO>
      <NAME1>HENLEY - PART MAQUINARIAS S.A.</NAME1>
      <STREET>Dean Camilo # 148, San Carlos</STREET>
      <CITY>LIMA</CITY>
      </ADDRESS>
      <EQUIPMENT>
      <EQUI_NO>4442</EQUI_NO>
      <EQUI_NO>8163</EQUI_NO>
      <EQUI_NO>8199</EQUI_NO>
      <EQUI_NO>8200</EQUI_NO>
      <EQUI_NO>8201</EQUI_NO>
      <EQUI_NO>8210</EQUI_NO>
      <EQUI_NO>8211</EQUI_NO>
      <EQUI_NO>58120</EQUI_NO>
      <EQUI_NO>90000-EMERGENCY</EQUI_NO>
      <EQUI_NO>90000-STOCK</EQUI_NO>
      </EQUIPMENT>
      <STORAGE_LOC>
      <STOR_LOC_NO>0001</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 HEN</DESCRIPTION>
      </STORAGE_LOC>
      <CUST_NO>200793</CUST_NO>
      <ADDRESS>
      <SHIP_TO>200793</SHIP_TO>
      <NAME1>Minera San Cristobal S.A.</NAME1>
      <STREET>Calacoto, Calle 90, Torre 2</STREET>
      <HOUSE_NO>Piso 5</HOUSE_NO>
      <CITY>La Paz</CITY>
      </ADDRESS>
      <EQUIPMENT>
      <EQUI_NO>90000-EMERGENCY</EQUI_NO>
      <EQUI_NO>90000-STOCK</EQUI_NO>
      </EQUIPMENT>
      <STORAGE_LOC>
      <STOR_LOC_NO>0001</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 HEN</DESCRIPTION>
      </STORAGE_LOC>
      <CUST_NO>200801</CUST_NO>
      <ADDRESS>
      <SHIP_TO>200801</SHIP_TO>
      <NAME1>ISEMAR S.A.</NAME1>
      <STREET>Ruta Km 28.45</STREET>
      <CITY>Don Torcuato Paraguay</CITY>
      </ADDRESS>
      <EQUIPMENT>
      <EQUI_NO>15079</EQUI_NO>
      <EQUI_NO>15097</EQUI_NO>
      <EQUI_NO>90000-EMERGENCY</EQUI_NO>
      <EQUI_NO>90000-STOCK</EQUI_NO>
      </EQUIPMENT>
      <STORAGE_LOC>
      <STOR_LOC_NO>0001</STOR_LOC_NO>
      <DESCRIPTION>01 Parts Center</DESCRIPTION>
      <STOR_LOC_NO>0056</STOR_LOC_NO>
      <DESCRIPTION>56 HEN</DESCRIPTION>
      </STORAGE_LOC>
    </CUSTOMER_FULL_20140207_033015_001>
    Output:
    Regards,
    Akhileshkiran.

  • Not able to validate the xml document against DTD using SAX

    Hi ,
    i am not able to validate xml document against its DTD using SAX parser even after setting setValidating = true. even if the file is not correct according to DTD , it is not throwing any exception. what could be the reason.? please help..
    kranthi
    this is the code sample i used.
    SAXParserFactory factory = SAXParserFactory.newInstance();
    factory.setValidating(true);
         try {
    factory.newSAXParser().parse(new File("sample.xml"), handler);
         } catch (SAXException e) {
         e.printStackTrace();                         System.exit(2);
         } catch (ParserConfigurationException e) {
    e.printStackTrace();
    }

    Hi karthik
    Thanks for your response
    Actually iam a beginner in java coding hence struggling to come up with the things
    I tried putting your code and onserver side i see it is returning 09:12:17,234 INFO [STDOUT] [root: null]
    actually the same program i wrote in java
    and the same method i was calling from the main
    and it is working fine and the xml document is getting displayed one important thing to be noted here is that the factory.newDocumentBuilder().parse(new File(filename));is returing XmlDocument
    and the printing takes place
    but the in same method public static Document parseXMLFile(String filename, boolean b) in servlet
    the line factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
    and this creating problem , had it returned XmlDocument
    i would have printed the elements one one
    but as it is returning deferredimpl
    iam unable to print the elements
    could you please tell me why factory.newDocumentBuilder().parse(new File(filename)); is returning DeferredDocumentImpl
    in servlets but in plain java pogram it is returing XmlDocument
    Thanks
    Bhanu

  • How to read a XML document uploaded via browser in OWA_Content

    I've developed a PLSql procedure to upload xml documents (via browser) into owa_content, now i need to read this xml document to use XML packges for insert into a Table if someone have a tip... help me please!
    Thanks!

    If u want to display the name : value then u can do like this
    <xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" />

  • RE: (forte-users) XML Parser - Reading an XML document intothe Document

    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • RE: (forte-users) XML Parser - Reading an XML document intothe D ocumen

    Hi Simakis,
    Your attachments explained the exact start i was looking for.
    Thanks a lot for sharing.
    Thanks
    Laks
    -----Original Message-----
    From: Simakis, Argyris [mailto:Argyris.Simakisdet.nsw.edu.au]
    Sent: Thursday, April 06, 2000 12:35 AM
    To: 'Narayanan, Lakshmi'
    Cc: 'kamranaminyahoo.com'
    Subject: RE: (forte-users) XML Parser - Reading an XML document into the
    D ocument Object
    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Simakis,
    Your attachments explained the exact start i was looking for.
    Thanks a lot for sharing.
    Thanks
    Laks
    -----Original Message-----
    From: Simakis, Argyris [mailto:Argyris.Simakisdet.nsw.edu.au]
    Sent: Thursday, April 06, 2000 12:35 AM
    To: 'Narayanan, Lakshmi'
    Cc: 'kamranaminyahoo.com'
    Subject: RE: (forte-users) XML Parser - Reading an XML document into the
    D ocument Object
    Hi Laks
    Here is an example of converting a XML doc to a DOM object.
    The method is ParseXML(pXMLString:TextData, pListType:CSAListInterface).
    Hope this helps.
    Argyris Simakis
    Corporate Services Applications ITB
    Sydney AUSTRALIA
    -----Original Message-----
    From: Narayanan, Lakshmi [mailto:lnarayanoxhp.com]
    Sent: Thursday, April 06, 2000 8:31 AM
    To: 'kamranaminyahoo.com'
    Subject: (forte-users) XML Parser - Reading an XML document into the
    Document Object
    Importance: High
    Hi guys,
    I have been trying to read an XML file and feed it into the XMLParser.
    I have read about the DOM API, and i can work with the DOM API in java
    scripts. How
    will i play with it in TOOL implementation of DOM API. Can anyone guide me
    in this
    process.
    Thanks for your help.
    Laks
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

Maybe you are looking for

  • GL - Open/Close Periods

    After setting up Set of books (along with chart of accounts, calendar, and functional currency, etc.) I opened the first period as Dec 04, although my first financial year will be from January 05 to Dec 05. Then I tried opening next period (which sho

  • Custom JMX MBeans not showing JRMC under Weblogic 10.3.1

    Hi, I have created some custom JMX MBeans and registered them with the Runtime MBean Server as described in the documentation in a ApplicationLifecycleListener. Even though the ObjectInstances I get back from the MBeanServer indicate that the MBean i

  • When i go to copy something it send out a blank page and say incorrect paper size how do i fix this

    i have not changed any settings

  • DirecTV streaming almost there...

    I just downloaded the new app for DirecTV, and am impressed.  The only thing I can't seem to do, which would be a godsend is to stream my DVR content while I'm at home.     Then I could Airplay it to my other TV that has an AppleTV 2 and just a non-D

  • IntVar = ResultSet.getInt(i) = NPE; how to handle?

    Hello, no code example since this shouldn't be too difficult to explain. I'm calling a storedproc and attempting to store the value from one of the columns in an int primitive. However, occasionally this value is NULL in the db, and attempting to sto