[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Select Nodes

Subject: Select Nodes
From: Paulus Jacko <pow_lung@xxxxxxxxx>
Date: Mon, 27 Aug 2007 07:48:46 -0700 (PDT)
 Select Nodes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.