Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-28 Thread Paul Dale
Hi Greg, Not really an answer to your question but I've found 4Suite ( http://4suite.org/index.xhtml ) quite useful for my XML work and the articles linked to from there authored by Uche Ogbuji to be quite informative. Best, Paul Gregory Piñero wrote: Thanks, John. That was all very

Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-27 Thread John Abel
Have a look on: http://xml.com/pub/a/98/10/guide0.html?page=4#WELLFORMED Explains it better then I can. J Gregory Piñero wrote: What do you mean by well-formed? What is required to make XML well formed? -Greg On 10/26/05, *John Abel* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-27 Thread Gregory Piñero
Thanks, John. That was all very helpful. It looks like one option for me would be to put cdata[ around my text with all the weird characters. Otherwise running it through on of the SAX utilities before parsing might work. I wonder if the sax utilities would give me a performance hit. I have 6000

Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-26 Thread Gregory Piñero
Should I try some sort of XML group instead? I'm still stuck on this. -Greg On 10/25/05, Gregory Piñero [EMAIL PROTECTED] wrote: Hi guys, I was hoping some XML expert could help me make this code work. Below is sample code with sample XML similar to what I'm dealing with. How can I make the

Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-26 Thread John Abel
Try this page: http://docs.python.org/lib/module-xml.sax.saxutils.html I've just tried the code, taking out the nbsp, and adding in the belo, as the XML is not well formed, otherwise. ?xml version=1.0 encoding=ISO-8859-15? The code then works. HTH J Gregory Piñero wrote: Should I try

Re: xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-26 Thread Gregory Piñero
What do you mean by well-formed? What is required to make XML well formed? -Greg On 10/26/05, John Abel [EMAIL PROTECTED] wrote: Try this page:http://docs.python.org/lib/module-xml.sax.saxutils.htmlI've just tried the code, taking out the nbsp, and adding in the belo, as the XML is not well

xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-25 Thread Gregory Piñero
Hi guys, I was hoping some XML expert could help me make this code work. Below is sample code with sample XML similar to what I'm dealing with. How can I make the weird characters in the XML not break the parser? I'll do anything to make this work! (Note: the nbsp; broke my parser yesterday but