Jump to content

How to display the XML code?


joecool2005
 Share

Recommended Posts

try this. I modified your syntax to load from a disk file

<%@language=vbscript %><%dim myXMLDomset myXMLDom = Server.CreateObject("Microsoft.XMLDOM")myXMLDom.async = falsemyXMLDom.Load(Server.MapPath("clients.xml"))Response.Write("<textarea cols=80 rows=50>" + myXMLDom.xml + "</textarea>")%>

Link to comment
Share on other sites

Thanks for your helpBut unfortunately, the XML code is sent by using a URL.Then I do request.querystring to get the xml code like this data=request.querystring ("xmlCode")When I do Response.Write(data), the white space is removed.So this is my code so far and i'm stuckdata=request.querystring ("xmlCode")dim myXMLDomset myXMLDom = server.CreateObject("Microsoft.XMLDOM")myXMLDom.async = falsemyXMLDom.preserveWhiteSpace = truemyXMLDom.loadXML(Data)....(I don't know what to do after to display the code)Thx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...