/catalog/course/subject[text()='DS']
Even better, you could trim the text before comparing it:
/catalog/course/subject[normalize-space(text())='DS']
You can find an excellent tutorial here:
http://www.w3schools.com/xpath/default.asp
A great book:
http://www.oreilly.com/catalog/xpathpointer
Handy tools for testing XPath expressions:
http://www.purpletech.com/xpe/index.jsp
http://www.topxml.com/xpathvisualizer/
Hope it will help
----------------------------
Massimo Foti
http://www.massimocorner.com
Co-Author of Dreamweaver MX 2004 Magic:
http://www.dwmagic.com/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

