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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOMDocument returns nothing

Status
Not open for further replies.

kafmil

Technical User
Jul 15, 2002
71
AU
I have a DOMDocument which opens an xml file that I have created but it returns 0 ChildNodes. I have checked the XML file with XML Spy and it is well formed. I have opened the xml file as a FileSystemObject File and it definately exists and is the file I want to use. I cannot figure out what is going wrong. My code is :

SET objXMLDoc = CreateObject("MSXML2.DOMDocument")
SET objXSLDoc = CreateObject("MSXML2.DOMDocument")
objXMLDoc.Load(Server.MapPath("xml\news.xml"))
objXSLDoc.Load(Server.MapPath("xsl\news.xsl"))
Response.Write objXMLDoc.transformNode(objXSLDoc)

Thanks For Your Help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top