[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPath problem with namespace attribute

Subject: RE: XPath problem with namespace attribute
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 5 Sep 2008 18:06:27 +0100
RE:  XPath problem with namespace attribute
> There is no way to create an XPath query for an empty defined 
> namespace as in the original XML.

No, of course you can access this XML. The fact that you need to use a
prefix in the XPath expression doesn't mean you need to use one in the XML
source! It's the URI that has to match, not the prefix.

(The way you bind namespace prefixes used in your XPath expression depends
of course on the API you are using to run the XPath expression)

Michael Kay

> (The reason I'm looking for such is that I am working with a 
> vendor that uses the "xmlns" "attribute"(but not really 
> attribute), but does not specify the namespace prefix.

Current Thread

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.