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!
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!