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="bett y" lastName="Smith ">I am at home</name>
But I only see text "I am at home"
did I do something wrong?
Set xmlDom=CreateOb ject("Microsoft .XMLDOM")
XMLDom.async =False
xmlDom.load Server.MapPath( "0925SelectTest .xml")
DataToSend = "xmlValue=" & xmlDom.xml
Response.Write DataToSend
Response.End
--
Betty 2 5058
Hi all
Interesting,whe n 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="bett y" lastName="Smith ">I am at home</name>
But I only see text "I am at home"
did I do something wrong?
Set xmlDom=CreateOb ject("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="bett y" lastName="Smith ">I am at home</name>
But I only see text "I am at home"
did I do something wrong?
Set xmlDom=CreateOb ject("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 would like to
use JavaScript as then I use Firefox as well as IE (tried some
VBScript, fine in IE of course but no go in Firefox). I have copied an
example from "XML Unleashed", but when I try it, I get the following
error;
A Runtime Error...
|
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 the data in the particular
node I wanted to display). The javascript looked something like:
function GetData()
{
|
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 like below:
'-------------------
For x = 1 To 10
Set oItemPrice = objXMLDoc.selectSingleNode("//Item/Price")
|
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 web. Part
of the presentation is that they want to be able to "search" for their
favorite dealers. So, this will be a string search.
The difficulty is, we dont have .NET, we dont have a SQL server -- all
I can use is ASP classic.
So, I can...
|
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?
-------------------------------------------------------------------------------------------------------
function MyXML() {
try{
this._xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
this._flag = 1;
}
catch(e)
{
|
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?
-------------------------------------------------------------------------------------------------------
function MyXML() {
try{
this._xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
this._flag = 1;
}
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |