joecool2005 Posted March 20, 2007 Share Posted March 20, 2007 Hi,I'm not familiar with XML.I have a code like this:dim myXMLDomset myXMLDom = server.CreateObject("Microsoft.XMLDOM")myXMLDom.async = falsemyXMLDom.loadXML(Data)How can I display all the XML code?I have tried this but it does not workResponse.Write(myXMLDom.xml) Link to comment Share on other sites More sharing options...
aalbetski Posted March 20, 2007 Share Posted March 20, 2007 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 More sharing options...
joecool2005 Posted March 21, 2007 Author Share Posted March 21, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now