General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Am i missing something in this Xpath?
-
russurquhart1 May 4, 2009 at 8:25 pm
Am i missing something in this Xpath?
May 4, 2009 at 8:25 pmParticipants 2Replies 3Last Activity 13 years, 10 months agoHi,
i am trying to use the following snippet to find any/all elements that have a filter attribute set to the value 'filter5':
var nodelist = ActiveDocument.getNodesByXpath(“*[@filter='filter5']”);
There are elements that meet this criteria in the file, but it keeps returning 0?
Am I missing something?
Thanks,
Russ
Derek Read May 4, 2009 at 8:38 pm
Reply to: Am i missing something in this Xpath?
May 4, 2009 at 8:38 pmDerek Read May 4, 2009 at 8:45 pm
Reply to: Am i missing something in this Xpath?
May 4, 2009 at 8:45 pmI see the documentation in the Programmer's Guide is misleading in this instance (or we have strayed from the initial design of that API) which states that the path should be relative to the document's “DOMDocument” node (the document's root node). I'll follow this up with development.
russurquhart1 May 4, 2009 at 8:47 pm
Reply to: Am i missing something in this Xpath?
May 4, 2009 at 8:47 pm -
AuthorPosts
- You must be logged in to reply to this topic.