another method ...
Dim id
id = xmldoc.selectSi ngleNode("/xiam/deliverRequest/@id").nodeTyped Value
Jut a personal preference to have the attribute as part of the Xpath (I think this works without
setting the SelectionLangua ge property for the xmldoc?).
Chris.
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Shawn wrote:
I have an XML file that contains nodes and I'm having no problem
extracting the information using ASP. However I can't seem to get the
ID number from the deliverrequest node from the example below.
Driving me crazy.. any help would be appreciated. Thanks
<!DOCTYPE xiamSMS SYSTEM "Message.dt d">
<xiam>
<deliverReque st id="10234690"> ''' Need to retrieve this number using
ASP
<to>test</to>
<from>number</from>
<content type="text">Tes t 2</content>
</deliverRequest>
</xiam>
Thanks.
dim id
id=xmldoc.selec tSingleNode("/xiam/deliverRequest" ).getAttribute( "id")
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004