commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad A. Chodavarapu" <chpra...@hotmail.com>
Subject [JXPath] Registering namespace prefixes
Date Wed, 03 Dec 2003 17:32:23 GMT
Hi All:

Is there a way of registering a namespace prefix upfront in a
JXPathContext so that I can then use that prefix in xpath expressions?
Here's what I'm looking for, in pseudo-code.

JXPathContext domContext = JXPathContext.newContext(document);
domContext.registerNamespace
  (http://www.example.com/ns/sample, "prefix");
domContext.getValue("prefix:a/prefix:b");

Thanks
chap

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message