dj_user2
asked on
Add Doctype to XML document
I am creating an xml document like this:
Set XMLdoc = Server.CreateObject("MSXML 2.DOMDOCUM ENT.4.0")
XMLdoc.insertBefore ...
XMLdoc.appendChild ...
I want to add Doctype to this xml document. How do I do that? Looks like I cannot use XMLdoc.CreateProcessingIns truction to add Doctype.
Set XMLdoc = Server.CreateObject("MSXML
XMLdoc.insertBefore ...
XMLdoc.appendChild ...
I want to add Doctype to this xml document. How do I do that? Looks like I cannot use XMLdoc.CreateProcessingIns
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
None
Why not?
<%
sCharSet = "UTF-8"
Set oInstruction = oXML.createProcessingInstr
oXML.insertBefore oInstruction, oXML.childNodes.item(0)
%>