Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Querying of xml using XQuery with namespace

 
Anandha Loganathan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic