Answered
How to traverse an XML document?
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
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
