Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XPathContext and lookups

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Steve Loughran" <steve.loughran AT gmail.com>
  • To: "Elliotte Harold" <elharo AT metalab.unc.edu>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XPathContext and lookups
  • Date: Thu, 13 Apr 2006 14:50:58 +0100

On 13/04/06, Elliotte Harold <elharo AT metalab.unc.edu> wrote:
> Steve Loughran wrote:
> > Am I right in concluding that there is no way for things outside the
> > xom package to map from prefix to uri in an XPathContext?
> >
>
> I don't think so. Why would you conclude that? XPathContext should be
> fully usable by any class that needs it in any package. It's public, not
> package protected.
>

Its public, but there is no public method to do a lookup from prefix to xmlns.

the getJaxenContext() method would give you an indirect way, but is is
package scoped, as it the namespace map itself...




Archive powered by MHonArc 2.6.24.

Top of Page