Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a simple xml question

Status
Not open for further replies.

yahoo182

Programmer
Jul 5, 2005
70
CA
Hi there,
I have a xml document that is passed from the server like so:
xmldoc = getXMLFromServer(url);
and I need to store the value of the deptAirp element into a string variable with JScript

<info>
<record> 23</record>
<deptAirpt> LAS </deptAirp>
</info>

Thanks :)
 
Simple:
Code:
Dim oNode
Set oNode = oXML.selectSingleNode("//info/deptAirp")
response.write oNode.text

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top