-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a problem with using the SAX parser to parse a XML file. It is a complex XML file, it is like the following.
<Objects>
<Object no="1">
<field name="PID">ilives:87877</field>
<field name="dc.coverage">Charlottetown</field>
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi everybody,
I have been using a SAX parser for a while now to get data from various XML, but today i'm banging my head on a new problem with a hudge XML (compared to the previous ones . here around 12k lines) with a lot of repetitive items in it. Most of the time, the items are part of a block…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello everyone,
I am using SAX to parse some XML. Let's say I have the following XML document:
<queue>
<element A> 1 </element A>
<element B> 2 </element B>
</queue>
<queue>
<element A> 1 </element A>
<element B> 2 </element…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using xml.sax with unicode strings of XML as input, originally entered in from a web form. On my local machine (python 2.5, using the default xmlreader expat, running through app engine), it works fine. However, the exact same code and input strings on production app engine servers fail with…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Imagine you have an XML document and imagine you have the DTD but the document itself doesn't actually specify a DOCTYPE ... How would you insert the DOCTYPE declaration, preferably by specifying it on the parser (similar to how you can set the schema for a document that will be parsed) or by inserting…
>>> More