P
Per Magnus L?vold
Hi, all!
I have a XML Parsing based on oracle's SAX parser
(oracle.xml.parser.v2.SAXParser).
With some XML files, it works fine. However, a more simple XML file
will not be processed. The parser stops after processing a small part
of the document, and ignores the rest. Is there anything I can do to
make the parser "accept" this document? Changing the structure of the
XML file is not an alternative..
Here is an extract from my XML file:
<Products>
<Product>
<IM>Flamingo</IM>
<PDUK>19981231</PDUK>
<PRUKS>1.00</PRUKS>
<AVUK>IN</AVUK>
<DNUK>HarperCollins Distribution Services</DNUK>
</Product>
<Product>
<IM>McGraw-Hill Education</IM>
<BIC>UHD</BIC>
<RC>U</RC>
<RC>P</RC>
<RC>R</RC>
<PDUK>19871231</PDUK>
<AVUK>IN</AVUK>
<DNUK>McGraw-Hill Education - Europe</DNUK>
</Product>
The first startElement() event I get is for the "Product" element. It
seems as if the parser ignores the "Products" element. Then, after
endElement for the first "Product" element, the parser stops.
Seems as if it beleives that "Product" is the first element! Is there
anything I can do to make the parser continue to parse the rest of the
document?
Regards, PML
I have a XML Parsing based on oracle's SAX parser
(oracle.xml.parser.v2.SAXParser).
With some XML files, it works fine. However, a more simple XML file
will not be processed. The parser stops after processing a small part
of the document, and ignores the rest. Is there anything I can do to
make the parser "accept" this document? Changing the structure of the
XML file is not an alternative..
Here is an extract from my XML file:
<Products>
<Product>
<IM>Flamingo</IM>
<PDUK>19981231</PDUK>
<PRUKS>1.00</PRUKS>
<AVUK>IN</AVUK>
<DNUK>HarperCollins Distribution Services</DNUK>
</Product>
<Product>
<IM>McGraw-Hill Education</IM>
<BIC>UHD</BIC>
<RC>U</RC>
<RC>P</RC>
<RC>R</RC>
<PDUK>19871231</PDUK>
<AVUK>IN</AVUK>
<DNUK>McGraw-Hill Education - Europe</DNUK>
</Product>
The first startElement() event I get is for the "Product" element. It
seems as if the parser ignores the "Products" element. Then, after
endElement for the first "Product" element, the parser stops.
Seems as if it beleives that "Product" is the first element! Is there
anything I can do to make the parser continue to parse the rest of the
document?
Regards, PML