Re: dia barfing on valid xml input
- From: Hans Breuer <hans breuer org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: dia barfing on valid xml input
- Date: Thu, 01 May 2008 10:34:46 +0200
Am 01.05.2008 10:21, Aaron Trevena schrieb:
Hi All,
I'm wondering if anybody can help track down the source of this
problem when importing a generated xml into dia 0.96.1 :
<class exceptions.SyntaxError at 0xb68e077c><exceptions.SyntaxError
instance at 0xb64c3b4c>Traceback (most recent call last):
File "/usr/share/dia/python/doxrev.py", line 482, in import_file
classes = GetClasses ([sFile])
File "/usr/share/dia/python/doxrev.py", line 400, in GetClasses
classes.extend (Parse (f.read()))
File "/usr/share/dia/python/doxrev.py", line 391, in Parse
p.Parse(sData)
File "/usr/share/dia/python/doxrev.py", line 344, in start_element
o = eval (s + "()")
The XML is from autodia, which usually works fine, but in this case
there is something upsetting dia that I haven't been able to spot.
Are you trying to use the importer for Doxygens XML format for the read Dia
diagram files? Than it may be that you are hit by
http://bugzilla.gnome.org/show_bug.cgi?id=503117
xmlint reckons the XML is fine, so it's a bizarro dia behaviour thing.
Any help appreciated, particularly ways in which to get a more useful
error message from the dia parser, because that's not helpful at all
to me.
There are a lot of parsers in Dia, the one which produces the strange
output above (a Python callstack) is not capable and not meant to import
Dia's native format.
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]