Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[ESTK] Get xmlElements not contains some attributes using Xpath expression

Participant ,
Jul 25, 2018 Jul 25, 2018

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
595
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 25, 2018 Jul 25, 2018

What error do you get? Is it important?

Where and how do you call this xpath?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jul 25, 2018 Jul 25, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines