Parsing the XML file which has encoding 'gb2312' .
"Xinzhi Zhao" <[email protected]> Sat, 13 Dec 2003 10:20:20 +0000
| Newsgroups | gmane.comp.web.zope.parsed-xml |
|---|---|
| Message-ID | <[email protected]> |
Hi, My XML files have to use other encoding instead of the default one, i.e. 'gb2312'. When I was parsing my XML files by dint of DOM or SAX , some errors occurred. The Python xml packages can't do it now? Is there any way can finish my job? How shall I do it? Please help me. Thanks, Xinzhi Zhao [email protected] ------------------------------------------------------------------------------- -- My xml file is shown as below, ---------------------------------------------- <?xml version = "1.0" encoding = "gb2312"?> <!-- This is my example. --> <article> <title> ¼òµ¥µÄ XML</title> <data>December 12, 2003</data> <author> <name>Xinzhi Zhao</name> </author> <summary>Parsing XML</summary> <content>This XML is available in IE6. However,parsing it in Python by DOM or SAX will be failed.How shall I do it? </content> </article> _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail