Parsing the XML file which has encoding 'gb2312' .

"Xinzhi Zhao" <[email protected]> Sat, 13 Dec 2003 09:57:02 +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 occured. 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 runnable in IE6. However,parsing it in Python by DOM or 
SAX will be failed.How shall I do it?
</content>

</article>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus