On Tue, 2004-09-14 at 18:35, Frank, Ulrich wrote:
> Hi,
> 
> I'd like to validate my xml files against a xsd file linked to my
> binary (in a Windows resource).
> I use a XercesDOMParser instance to create a DOM of my XML.
> Is there a possibility to validate against a string wich contains the
> xsd resource???
> 

Yes, a schema is located like any other "external entity".

So you just need to create a custom EntityResolver, override the
"resolveEntity" method to return the string you've fetched from the
resource file, and call parser->setEntityResolver(...).


Regards,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to