[xsd-users] unknown element
Boris Kolpackov
boris at codesynthesis.com
Fri May 16 06:26:21 EDT 2008
Hi Laura,
Laura Ripple - Human Sciences <lripple at raydon.com> writes:
> I recently added the namespace to my schema and now I get unknown
> element on the very first element in the xml when I run. I am compiling
> with the XSD/parser in VS2005. I have shrunk down my xsd file and the
> xml to only contain one element.
I am pretty sure you forgot to add the root element's namespace to the
document's constructor. In other words you code looks like this:
xml_schema::document doc_p (root_p,
"RNFSchemaSmall");
While it should be:
xml_schema::document doc_p (root_p,
"http://www.raydon.com/RNFSchemaSmall",
"RNFSchemaSmall");
If this doesn't help, can you send your test driver that parses the
XML document you sent so that I can take a look?
Boris
More information about the xsd-users
mailing list