This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Selecting a Node with a namespace defined Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Selecting a Node with a namespace defined" Watch "Selecting a Node with a namespace defined" New topic
Author

Selecting a Node with a namespace defined

Rudolf Castelino
Greenhorn

Joined: Oct 30, 2002
Posts: 18
Hi
Is there any efficient way to retrieve a namespace aware node from an xml document.
The Axis XPathAPI, does not provide any method to locate a node using namespaces.
Please help
regards
Rudolf
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Yes, Its possible.
Declare the namespace on top of the xsl template or stylesheet w.r.t to input XML.
Use the above declared namespace qualifier to identify the xml nodes.
Rudolf Castelino
Greenhorn

Joined: Oct 30, 2002
Posts: 18
Hi
Thanks for the input. We are not using the XML with stylesheets. It is being used for datatransfer.
Would it be possible for you to provide a code snippet?
Regards
Rudolf
 
wood burning stoves
 
subject: Selecting a Node with a namespace defined
 
Similar Threads
XML Notes -II
Newbie XSLT Question
how to pick the node/attribute for a particular namespace
help - what's the difference: axis following and axis following-sibling?
Help for XML in-memory validation