Paul Tomsic wrote:
perhaps this is more of a xalan thing, but i'm hoping
someone here might be able to help.

i'm querying nodes via xpath XPathAPI.selectSingleNode(Node, String) where the
string is the xpath "foo/[EMAIL PROTECTED]'2']/baz"

that fails if the node has a default namespace or if
the nodes in the xpath belong to a miriad of
namespaces.
as a result, i need to change that to
"a:foo/b:[EMAIL PROTECTED]'2']/c:baz"

does anyone know if there's a way to either (a)
determine each node's namespace and make it part of
the xpath, or (b) simply have the node disregard the
namespaces entirely for the sake of xpath'ing?
If you have control over the DOM which you are evaluating with XPath; you could use a namespace unaware parser to build the DOM.

Also see :http://norman.walsh.name/2006/03/28/jaxpNamespaceContext

HTH
-Prashant
thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to