Inserting a DTD to an xml file through VB code.

webmasterbeta

New Member
Hi,I am parsing an xml file using the MSXMl parser in VB 6.0. I want to validateit against a specific external dtd file. I have finished that part. But theproblem is that the file may come from some server and might not containthe <!DOCTYPE people SYSTEM... line in it. I could go as far as checkingif a DTD has been specified or not (by using doctype property of IXMLDOMDocumentType).But if it does not have a line for that DTD, i want to insert it throughmy vb code. I checked out that CreateNode with NODE_DOCUMENT_TYPE gives anerror. Can you please help me out.RegardsAsh
 
Back
Top