[Project_owners] XPATH Implementation broken?

Ramiro Aparicio frisco82 at gmail.com
Mon May 8 11:20:22 EDT 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20060508/b763419f/attachment-0001.htm


More information about the Project_owners mailing list