[jdom-interest] Document properties

Laurent Bihanic laurent.bihanic at atosorigin.com
Mon Jan 26 02:40:54 PST 2004


Hi,

On 22/01/2004 17:31, phil at triloggroup.com wrote:
> One use case is with XPath & Namespace. Currently, when using Jaxen, we 
> have to pass it a context containing the mapping between aliases and 
> URI. And this can be cumbersome, if you have lot of code located into 
> different places. Microsoft solved this pb in InfoPath quite elegantly 
> and efficiently, by allowing user to set a Document property containing 
> the namespace mapping.

JDOM makes it even simpler than that : Just declare the namespace mapping 
using Element.addNamespaceDeclaration and it will be made available to Jaxen 
when in scope.

Laurent



More information about the jdom-interest mailing list