Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.2.8 released

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XOM 1.2.8 released
  • Date: Mon, 14 May 2012 13:51:55 -0700

On Mon, May 14, 2012 at 1:50 PM, Elliotte Rusty Harold
<elharo AT ibiblio.org> wrote:
> On Mon, May 14, 2012 at 1:44 PM, Regier Avery J
> <RegierAveryJ AT johndeere.com> wrote:
>> It seems to be lost here that I am not attempting to bind to the null
>> namespace. I am attempting to bind a prefix to a non-null namespace that
>> currently has no prefix because the document did not specify it with one.
>

That doesn't look like what your code is doing. See here:

context.addNamespace("a", context.lookup(""));

context.lookup("") should always return no namespace because "" cannot
be bound in an XPath context.


--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page