jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes Querying  of xml using XQuery with namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Querying  of xml using XQuery with namespace " Watch "Querying  of xml using XQuery with namespace " New topic
Author

Querying of xml using XQuery with namespace

Anandha Loganathan
Greenhorn

Joined: Jul 11, 2007
Posts: 13
I have the following XML file and I want to extract some data using xquery.


and I have written the following xquery to extract some data.


Here {$a} returns all the data and {$b} doesn't retrieve any data and it just displays <disclosure/> instead of some values under <disclosure> element.

Please someone help me how do I retrieve all the data under the root element. I am not sure what I am missing here.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Querying of xml using XQuery with namespace
 
Similar Threads
adding and removing elements from DOM in java
XML parsing
XML help
KSoap2 question, please reply
Parsing text