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
<name firstName="betty" lastName="Smith">I am at home</name>
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 2 5040
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
<name firstName="betty" lastName="Smith">I am at home</name>
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
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
<name firstName="betty" lastName="Smith">I am at home</name>
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: reclusive monkey |
last post by:
I am just starting out with XML. I've been playing with XML and XSLT,
very nice indeed. I particularly like the filtering/ordering functions.
Anyway, I have started to have a look at scripting, and...
|
by: BCM |
last post by:
In ASP 3, I once did a page using javascript and XMLDOM that loaded up xml
files, displayed their data, and automatically refreshed that data at 10
second intervals (not a whole page refresh: just...
|
by: joe |
last post by:
I am having problems checking for the value of an XMLDOM object .
Lets say my XMLDOM object was successfully created as objXMLDoc, and that
has several nodes on it. In the case of a VBScript loop...
|
by: Mr. x |
last post by:
Hello,
How can I use xmlpath technogy by xmldom.
(or there is another technique, but not xmldom).
I need some code samples, please.
Thanks :)
|
by: c676228 |
last post by:
Hi everyone,
I searched on the internet and didn't get exactly what I want. Do you have
any?
--
Betty
| |
by: lejason |
last post by:
Hello, I am looking for a way to do a string search inside an xml.
Basically, I work for a company that wants to export an XML file from
and excel sheet and then have that data be presented on the...
|
by: rahat09 |
last post by:
I am new to JavaScript/XML, I am trying to load xml file as well as xml as string input, and have written following code. This is working in IE but not in FireFox, can anyone help?...
|
by: rahat09 |
last post by:
I am trying to load xml file as well as xml as string input, and have written following code. This is working in IE but not in FireFox, can anyone help?
...
|
by: AnuSumesh |
last post by:
Hi,
I want to read the text property of XML file.
My xml file is as follows:
<?xml version="1.0"?>
<Domain_Credentials>
<User> anu </User>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| | |