[XML-SIG] [ pyxml-Bugs-529839 ] error in euc-kr document

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Mar 2002 04:06:12 -0800


Bugs item #529839, was opened at 2002-03-14 04:06
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=529839&group_id=6473

Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: error in euc-kr document

Initial Comment:
test.xml
------------------------------------------
<?xml version="1.0" encoding="euc-kr"?>
<test>한글이 무엇인고 하니...</test>

Error message
------------------------------------------
  File "test.py", line 7, in ?
    dom = parseString(xmldoc)
  File "/usr/local/lib/python2.2/site-
packages/_xmlplus/dom/minidom.py", line 965, in 
parseString
    return _doparse(pulldom.parseString, args, kwargs)
  File "/usr/local/lib/python2.2/site-
packages/_xmlplus/dom/minidom.py", line 952, in 
_doparse
    toktype, rootNode = events.getEvent()
  File "/usr/local/lib/python2.2/site-
packages/_xmlplus/dom/pulldom.py", line 256, in 
getEvent
    self.parser.feed(buf)
  File "/usr/local/lib/python2.2/site-
packages/_xmlplus/sax/expatreader.py", line 148, in 
feed
    self._err_handler.fatalError(exc)
  File "/usr/local/lib/python2.2/site-
packages/_xmlplus/sax/handler.py", line 38, in 
fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:2:9: 
not well-formed (invalid token)


I can't english.. ^^;;
This xml document is valid.
But error message is invalid.
Why this error happen?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=529839&group_id=6473