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

How to traverse an XML document?

Explorer ,
Jun 01, 2007 Jun 01, 2007

Copy link to clipboard

Copied

I'm trying to use an XML document to qualify conditional text IDs that may be assigned to a section of text. To do that I need to read the child nodes for a given parent node in the XML, and assign those child node values to an array.

The DW8 document API does not appear to support such JavaScript XML DOM functions as loadXMLDoc(), nor do functions like dom.getSelectedNode() support xpath expressions. The childNodes object pertains only to the immediate children of the document object, and does not behave properly as xmlDOM.getElementsByTagName("TopicSku").childNodes.

How do I traverse an XML document using the DW8 extension API?

Thanks,

-Scott
TOPICS
Extensions

Views

307
Translate

Report

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
Explorer ,
Jun 06, 2007 Jun 06, 2007

Copy link to clipboard

Copied

LATEST
Oh, wait. I wasn't using getElementsByTagName("TopicSku").childNodes correctly. It works with xmlDOM.getElementsByTagName("TopicSku")[iter].childNodes. I'm back on track again.
-Scott

Votes

Translate

Report

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