[xsd-users] Errors obtained when parsing from istringstream

Boris Kolpackov boris at codesynthesis.com
Fri Aug 10 04:28:57 EDT 2007


Hi Shiva,

Balasubramanyam, Shivakumar <sbalasub at qualcomm.com> writes:

> I have a case where the parsing works fine when I use the file URI but
> fails with a lot of error messages specifying the following,

You mean it fails when you parse something other than a file URI? Are
you parsing a stream? The schema path specified in the XML document
are treated as relative to the document itself unless they are absolure
URIs (that is start with http://, file://, etc). If you are parsing
a stream, then you will need to specify some (perhaps non-existent)
path as a resource id in order to allow the parser to locate the
schemas. Alternatively you can override the schema locations specified
in the XML document with your own paths. For more information on this
topic see: Section 5.1, "XML Schema Validation and Searching" in
the C++/Tree Mapping Getting Started Guide:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/guide/#5.1

hth,
-boris




More information about the xsd-users mailing list