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

xml tagName

Participant ,
Jul 21, 2017 Jul 21, 2017

Hey guys,

I'm having trouble getting access to the tagName property in Extendscript.

basically, I want to get the name of an XML node.

<nodeName>data</nodeName>

where I want the property that returns "nodeName". In Javascript, this is done with the tagName property. Is there no way to do this with Extendscript?

TOPICS
Scripting
867
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

correct answers 1 Correct answer

Advocate , Jul 22, 2017 Jul 22, 2017

In ExtendScript, it is implement through a method, localName():

var xml = <nodeName>0</nodeName>;

xml.localName();

The (Adobe) JavaScript Tools Guide.pdf has a description of all the attributes and methods of the XML class.

Xavier

Translate
Advocate ,
Jul 22, 2017 Jul 22, 2017

In ExtendScript, it is implement through a method, localName():

var xml = <nodeName>0</nodeName>;

xml.localName();

The (Adobe) JavaScript Tools Guide.pdf has a description of all the attributes and methods of the XML class.

Xavier

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
Participant ,
Jul 22, 2017 Jul 22, 2017
LATEST

perfect. thanks!

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