Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Element. // Used for XPath and serialization Why is Element.getNamespacePrefixesInScope() private?

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: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Element. // Used for XPath and serialization Why is Element.getNamespacePrefixesInScope() private?
  • Date: Mon, 23 Jan 2006 12:24:15 +0000

On 1/5/06, Elliotte Harold <elharo AT metalab.unc.edu> wrote:
> Steve Loughran wrote:
> > Why is Element.getNamespacePrefixesInScope() private?
> >
> > Is it because nobody has expressed a need for it to be accessible yet?
> >
> > if so, I'd like access :)
>
> You know the drill by now. What's the use case?
>

Actually, rather than making this method public, a nice trick might be
to return some construct that implements
javax.xml.namespace.NamespaceContext

that way I could cache the original namespace context resolving stuff
even while I do horrible things to the object graph.

-steve




Archive powered by MHonArc 2.6.24.

Top of Page