Subject: Select Nodes
From: Paulus Jacko <pow_lung@xxxxxxxxx>
Date: Mon, 27 Aug 2007 07:48:46 -0700 (PDT)
|
Hi,
I have books.xml
<book category="WEB">
<title lang="en">Learning
XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("books.xml")
xmlDoc.selectNodes(path
expression)
What path expression should i use to take text value of 'lang'
attribute in the book/title
where 'category' attribute of book is 'WEB'
(return value is 'en')
Thx,
Paul
_____________________________________________________________________________
_______
Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs
=bz
| Current Thread |
- Select Nodes
- Paulus Jacko - 27 Aug 2007 14:49:17 -0000 <=
- <Possible follow-ups>
- cknell - 27 Aug 2007 15:08:05 -0000
- Paulus Jacko - 27 Aug 2007 15:10:33 -0000
|
|