[Project_owners] XPATH Implementation broken?
Nathaniel Jayme
nbjayme at yahoo.com
Mon May 8 18:40:19 EDT 2006
Sir Ramiro,
Thank you so much. I haven't expected that convention
at all and I have been battling with it for a day.
i was using "./*[@uda_cxmltag]" but it didn't help at
all.
Sincerely yours,
NBJayme
--- Ramiro Aparicio <frisco82 at gmail.com> wrote:
> You are using an absulote XPath so it returns all
> nodes.
> To use a relative XPath try this:
> ".//*[@uda_cxmltag]" (note the dot at the
> beginning)
>
> On 5/8/06, Nathaniel Jayme <nbjayme at yahoo.com>
> wrote:
> >
> > Hello folks.
> >
> > I have the following code:
> >
> > testNode = document.getElementById('testid');
> >
> > result =document.evaluate("//*[@uda_cxmltag]",
> > testNode,
> null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
> > null);
> >
> > i want to get the Elements with uda_cxmltag
> attribute
> > within the testNode DOM. Mozilla returns a XPath
> > result that include elements outside the testNode.
> >
> > is this a Mozilla bug? if not, how should it be
> done?
> >
> > thanks for the help.
> >
> > NBJayme
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
>
>
>
> --
> Hasta Otra
>
> Ramiro Aparicio
>
>
---------------------------------------------------------------------------------
> Webmaster de http://gs151.tk y
> http://www.climaxsl.es
> Desarrollador de FoxGame http://foxgame.mozdev.org
> > _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Project_owners
mailing list