[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

querying an xml file with namespaces

Michaël Michaud michael.michaud at free.fr
Wed Jan 11 23:17:44 PST 2006


  querying an xml file with namespaces
Hello,

I try to query an xml file with nux XQueryUtil.
First time, i get messages such as
  "Prefix md has not been declared"

I could get the result by adding something like
  "declare namespace md="http://www.isotc211.org/2005/gmd";"
in front of my query string.

Now I try to read the namespaces first with another query
  XQueryUtil.xquery(node, "//namespace::*")
to automatically add the namespaces in front of my main query,
but I get the message :
  "The namespace axis is not available in XQuery"

Question : what is the simple method to query an xml file using
namespaces ?

Thanks a lot.

Michaël


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.