xml loaded som streng
jeg har følgende kode:<%
Dim mydoc,strXML
strXSLFile = Server.MapPath("/" & "jobs/xml/style.xsl")
strXMLFile = Server.MapPath("/" & "jobs/xml/xml.xml")
'Response.Write Server.MapPath("/" & "bn/apps/xml/style.xsl")
'Instantiate the XMLDOM Object that will hold the XML file.
set objXML = Server.CreateObject("Microsoft.XMLDOM")
'Turn off asyncronous file loading.
objXML.async = false
'Xml string
strXML="<?xml version='1.0' encoding='ISO-8859-1'?><catalog><cd><title>Empire Burlesque</title></cd></catalog>"
'Load the XML file.
objXML.load(strXMLFILE)
'Instantiate the XMLDOM Object that will hold the XSL file.
set objXSL = Server.CreateObject("Microsoft.XMLDOM")
'Turn off asyncronous file loading.
objXSL.async = false
'Load the XSL file.
objXSL.load(strXSLFile)
'Use the "transformNode" method of the XMLDOM to apply the
'XSL stylesheet to the XML document. Then the output is
'written to the client.
Response.Write(objXML.transformNode(objXSL))
%>
hvis jeg loader den xml fra en fil så virker det, men hvis jeg loader filen som en streng i filen, så virker det ikke, hvorfor ?
