Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Apply DTD

Status
Not open for further replies.

NewTerminator

Programmer
Apr 28, 2003
22
IN
I have 2 questions about DTDs

1. Is there any way that i can dynamically apply a DTD to an XML file using ASP?

2. When you load a XML file using the Load function of MSXML2.DOMDocument object, does it ignore any DTD that the XML file refers?

Any help would be appreciated?

Thanks,

San
 
<you wrote:>1. Is there any way that i can dynamically apply a DTD to an XML file using ASP?

I am not sure what you mean by dynamically apply but here is my take on it: you can create a dtd right along with the xml file and embed it as an internal dtd, a caution however as this will definatly increase the size of your document.

<you wrote:>2. When you load a XML file using the Load function of MSXML2.DOMDocument object, does it ignore any DTD that the XML file refers?

when you use load or loadXML function make sure the property validateOnParse is set to false to ignore the dtd and true to validate the XML.


hope this helps,
Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top