I got this error:

c...@dv67:~/dabo-trunk$ ReportDesigner.py 
./ide/wizards/AppWizard/spec-sampleReport.rfxml
...
   File "/home/carl/dabo-trunk/dabo/lib/xmltodict.py", line 208, in xmltodict
     raise dabo.dException.XmlException, errmsg
dabo.dException.XmlException: An invalid XML string was encountered

and wanted to post a slightly better error message, so I dug in a bit to see 
what was going on:

 >>> from xml.parsers import expat
 >>> Parser = expat.ParserCreate()
 >>> xml=open('spec-sampleReport.rfxml').read()
 >>> Parser.Parse(xml, 1)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
xml.parsers.expat.ExpatError: XML declaration not well-formed: line 1, column 30

So the python error has "line 1, column 30" which might be useful.  or it might 
not, like if some lines were stripped off or something, and so line 1 of the 
xml 
isn't the same as line 1 of the .rfxml (maybe, it could happen)

Maybe the idea was just to localize the error message, but I bet python already 
does that.

anyway, here is line 1, col 30: %

<?xml version="1.0" encoding="%(enc)s" standalone="yes"?>

that don't look right.

Carl k

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to