--- Begin Message ---
Thanks, Jason, I finally figured out my problem.
It would appear that if you have in your XML document:
xsi:NoNamespaceSchemaLocation='pepXML_v9_1.xsd'
Instead of:
xsi:noNamespaceSchemaLocation='pepXML_v9_1.xsd'
Then the file is read without any validation but no other complaints.
Funny old things, computers.
Thanks,
Eric
> -----Original Message-----
> From: Jason E. Stewart [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 14, 2004 8:24 AM
> To: Eric Deutsch
> Subject: Re: Xerces validation against xsd?
>
> "Eric Deutsch" <[EMAIL PROTECTED]> writes:
>
> >> Yes, you need to set a number of parser options at once: validation
> >> off (no DTD), shema on, and namespaces on - it's that last one that
> >> usually get's people.
> >>
> >> $parser->setValidationScheme ($validate);
> >> $parser->setDoNamespaces ($namespace);
> >> $parser->setDoSchema ($schema);
> >>
> >> where each takes a boolean on/off value. Check the t/ directory,
there
> >> is a schema example in there, but it's minimal.
> >
> > Hmm, thanks, that doesn't do it either. That only succeeds in
turning
> > off all validation. Maybe my Xerces is too old and this works on
newer
> > ones.
>
> Nah. If you can make the setDoSchema() call, you get get schema
> validation working. You have to make sure that setValidationScheme()
> is off, and that namespaces and schema are on.
>
> I used the samples/personal-schema.xml and I broke the personal.xsd
> schema and got a fatal error and I broke personal-schema.xml and also
> got a fatal error so it is correctly validating with the schema.
>
> perl ./samples/DOMCount.pl -v=never -n -s
./samples/personal-schema.xml
>
> Let me know if you have some examples and I'll try them out.
>
> Cheers,
> jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- End Message ---