[xsd-users] Why this error?
Al Niessner
Al.Niessner at jpl.nasa.gov
Wed Mar 7 19:28:35 EST 2007
I am new to this product, but I have a pile of schema that I have been
using with JaxB and generateDS for the Java and Python languages
respectively. Hence, I think the XML Schema is mature enough that I can
ignore it for now.
Basically, I generated some C++ code with 'xsd
cxx-tree ../../DescriptionLanguage/externalTool.xsd'.
I then wrote a bunch of C++ code that looks very similar to my Java and
Python code to parse some XML. It did not work at all. I get this error
message:
terminate called after throwing an instance of
'xsd::cxx::tree::parsing<char>'
what(): instance document parsing failed.
I get the idea that the xml file might be wrong, so I parsed it with
both Python and Java without error. I then visited the FAQ and added
xml_schema::flags::dont_validate with no change. I then added the schema
location to the XML file with no change.
Since the test code and XML file are small and simple I have attach
them. If you want to see more I can produce it, but did not want to
bloat this email overly much.
Thanks for any and all help in advance.
--
Al Niessner
818.354.0859
All opinions stated above are mine and do not necessarily reflect those
of JPL or NASA.
--------
| dS | >= 0
--------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msg.xml
Type: application/xml
Size: 165 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070307/b96125d6/msg.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cc
Type: text/x-c++src
Size: 602 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070307/b96125d6/test.cc
More information about the xsd-users
mailing list