This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selecting a Node with a namespace defined