Re: Find an xml node from a session variable?
Sent: Thursday, June 07, 2007 4:49 PM
Subject: Find an xml node from a session variable?
MikeCan anyone point me to a tutorial or sample on how to find a specific node in an xml file based on a session variable.
You can almost certainly do what you want. If, for example, you have a list of user elements within a users element with each user having an id attribute then you need the XPath created by:
/users/user[@id = '" + sessionVariable + "']"
to retrieve the relevant element.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format