0
[ESTK] Get xmlElements not contains some attributes using Xpath expression
Participant
,
/t5/indesign-discussions/estk-get-xmlelements-not-contains-some-attributes-using-xpath-expression/td-p/10024019
Jul 25, 2018
Jul 25, 2018
Copy link to clipboard
Copied
Hi all,
I need to find xml element not contains class attribute using xpath expression.
I try the below xpath is not working. get an error.
Xpath:
"//table[not(@class='informal')]" or "//table[not(@class)]"
Please give any helps!!
thanks,
John.
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/indesign-discussions/estk-get-xmlelements-not-contains-some-attributes-using-xpath-expression/m-p/10024020#M111237
Jul 25, 2018
Jul 25, 2018
Copy link to clipboard
Copied
What error do you get? Is it important?
Where and how do you call this xpath?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
People's Champ
,
LATEST
/t5/indesign-discussions/estk-get-xmlelements-not-contains-some-attributes-using-xpath-expression/m-p/10024021#M111238
Jul 25, 2018
Jul 25, 2018
Copy link to clipboard
Copied
Remember that XPath implementation is only partial in ExtendScript so many functions will simply not be executed.
So you may need to collect table nodes with a simpler xpath like "//table" and loop through nodes to grab only the one you are looking for.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

