Re: Problem validating XML document with XSD schema if the document has a DTD DOCTYPE.

2010-09-17 Thread David
Thanks, thats what I'm seeing. I can use SAXParser to validate ignoring the DTD but not Validator. David A. Lee d...@calldei.com http://www.xmlsh.org On 9/17/2010 12:03 PM, Michael Glavassevich wrote: Hi David, What you are seeing may be due to the combination of features you are setting.

Re: Problem validating XML document with XSD schema if the document has a DTD DOCTYPE.

2010-09-17 Thread Michael Glavassevich
Hi David, What you are seeing may be due to the combination of features you are setting. If you are enabling both the Xerces' specific 'validation' and 'schema validation' features the behaviour may surprise you. What happens when the document also has a DTD is described in this FAQ [1]. I've nev

Problem validating XML document with XSD schema if the document has a DTD DOCTYPE.

2010-09-17 Thread David
I'm trying to use the Validator class to validate XML documents againts a supplied XSD file. I was having problems with getting no errors on obvioulsy invalid XML. I have tracked it down to DTD processing. IF I have an XML document with a DOCTYPE like this: And the document validates agai