You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Radhika Vurputoor <Ra...@sdrc.com> on 2001/02/09 22:43:29 UTC

Parsing an XML file with schema definition

I need to parse an XML file which has a schema definition. I am running
the parser with validation off. The parser treats schema as a regular
document. Once it reaches the end of schema and beginning of the actual
document, it throws an exception saying that only comments and
processing instructions are allowed at this line. Is there anyway to
make the parser skip all the schema stuff and parse the document?

Thanks
Radhika


Parsing an XML file with schema support

Posted by Ryan Koss <rk...@acmepacket.com>.
Does xerces-c support the ability to validate using schemas???

Ryan Koss
Acme Packet


RE: Parsing an XML file with schema definition

Posted by "David E. Cleary" <da...@progress.com>.
> I need to parse an XML file which has a schema definition. I am running
> the parser with validation off. The parser treats schema as a regular
> document. Once it reaches the end of schema and beginning of the actual
> document, it throws an exception saying that only comments and
> processing instructions are allowed at this line. Is there anyway to
> make the parser skip all the schema stuff and parse the document?

Your document is not well formed XML because it has 2 root elements. You
need to place the schema underneath the root element of your instance, or
keep the separate files.

David Cleary
Progress Software