Want to Validate a DOM Tree Against a Schema - Xerces C/C++

N

Novitas

I would like to perform a schema validation of a DOM tree that is
already assembled in memory with as little fuss and setup as possible.

I see support in the Xerces documentation to perform validation with
DOMBuilder and XercesDOMParser. There is also an interface class
called XMLValidator, but it is not clear to me how I might use these
resources to achieve what I described above. Any help getting started
in the right direction would be greatly appreciated.

Thanks in advance
 
I

Ian Pilcher

Novitas said:
I would like to perform a schema validation of a DOM tree that is
already assembled in memory with as little fuss and setup as possible.

I see support in the Xerces documentation to perform validation with
DOMBuilder and XercesDOMParser. There is also an interface class
called XMLValidator, but it is not clear to me how I might use these
resources to achieve what I described above. Any help getting started
in the right direction would be greatly appreciated.

In Java, one uses a SchemaFactory to create a Schema, and then one uses
that schema to create a Validator. Finally, a DOMSource is created from
the DOM tree and passed to the Validator.

I'm not sure how much of this will translate to C/C++, but it might get
you started in the right direction.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top