cannot get xml string from xmlDom.xml, but text
am 27.10.2007 00:18:01 von bettys
Hi all,
I have the following code which I try to load an xml file, but in browser, I
only get text value for each node, not whole xml string. I expect to see
something like
I am at home
But I only see text "I am at home"
did I do something wrong?
Set xmlDom=CreateObject("Microsoft.XMLDOM")
XMLDom.async =False
xmlDom.load Server.MapPath("0925SelectTest.xml")
DataToSend = "xmlValue="& xmlDom.xml
Response.Write DataToSend
Response.End
--
Betty
RE: cannot get xml string from xmlDom.xml, but text
am 27.10.2007 00:23:02 von bettys
Hi all
Interesting,when view source in the browser, it has whole xml string.
It seems that it just display in browser in a way which is not xml
--
Betty
"c676228" wrote:
> Hi all,
> I have the following code which I try to load an xml file, but in browser, I
> only get text value for each node, not whole xml string. I expect to see
> something like
> I am at home
> But I only see text "I am at home"
> did I do something wrong?
> Set xmlDom=CreateObject("Microsoft.XMLDOM")
>
> XMLDom.async =False
>
> xmlDom.load Server.MapPath("0925SelectTest.xml")
>
>
> DataToSend = "xmlValue="& xmlDom.xml
> Response.Write DataToSend
> Response.End
> --
> Betty
RE: cannot get xml string from xmlDom.xml, but text
am 27.10.2007 00:25:01 von bettys
OK I got it since xml tag cannot be recognized by browser which only for html
tag.
somehow I forgot that part
--
Betty
"c676228" wrote:
> Hi all,
> I have the following code which I try to load an xml file, but in browser, I
> only get text value for each node, not whole xml string. I expect to see
> something like
> I am at home
> But I only see text "I am at home"
> did I do something wrong?
> Set xmlDom=CreateObject("Microsoft.XMLDOM")
>
> XMLDom.async =False
>
> xmlDom.load Server.MapPath("0925SelectTest.xml")
>
>
> DataToSend = "xmlValue="& xmlDom.xml
> Response.Write DataToSend
> Response.End
> --
> Betty