Validating against a DTD - 06-09-2006 , 03:02 PM
I am trying to validate an xml file against a DTD. I went through a lot
of examples especially:
but its not working in my case.
First of all, when i try to add my DTD file in XmlSchemaCollection
object, it throws an error saying DocType element is expected.
I am using NITF DTD for this and there is no DocType element in it.
Any help will be appreciated.
Re: Validating against a DTD - 06-19-2006 , 01:38 PM
You should not add DTDs to XmlSchemaCollection. XmlSchemaCollection only
holds XDR and XSD schemas. DTD content definitions are references through
the XML files themselves, by having a <!DOCTYPE .... definition on top of
<vdahiya (AT) gmail (DOT) com> wrote
|Thread Tools||Search this Thread|