Sorry, you're right -- I forgot about that restriction on XML Name.

Ari

At 03:44 PM 7/31/02 -0400, bob mcwhirter wrote:

>What is the xmlnsIndex attribute?  Is it defined by the w3c?
>
>They've reserved all attributes starting with anything that
>matches [xX][mM][lL]. I though (though could be wrong) that
>xmlns was the only legal attribute, currently, that starts
>with 'xmlns'.
>
>         -bob
>
>
>
>On Wed, 31 Jul 2002, Ari Kermaier wrote:
>
> > Dear All,
> >
> > The source at org.jaxen.dom.DocumentNavigator line 384 decides if an
> > attribute is a namespace declaration for inclusion in the result for
> > getNamespaceAxisIterator():
> >
> >          if (att.getNodeName().startsWith("xmlns")) {
> >                  /* ... */
> >          }
> >
> > It seems to me, however, that this will be incorrect in cases where a
> > non-namespace attribute's name begins with those 5 characters (e.g., <Foo
> > xmlnsIndex="256" />). I think a more correct expression would be:
> >
> >          if (att.getNodeName().equals("xmlns") ||
> >              att.getNodeName().startsWith("xmlns:")) {
> >                  /* ... */
> >          }
> >
> > Or have I misunderstood something?



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to