Defining a DTD for an XMl Document
Is there any way to define a DTD for an XML file ? I have a set of 12.000 files, all without DTD's defined in the files. The files does have a DTD to validate against, and I need C# to be able to use this file to validate the XML files against.
Is there any way of defining this, without having to insert a doctype in all the xml files ? (I know I can do this with xslt, but thats out of the question).
Something like:
XmlTextReader reader = new XmlTextReader(filename);
reader.setDocumentType(dtdfile);
Thanks,
.:BoeManE:.
|