Aras Innovator Platform

How to Select a Single Node

ArasModules.xml.selectSingleNode selects the first XML node that matches the XPath expression. It functions identically to the standard XmlDOMDocument.selectSingleNode(xPathString).

The function takes the following arguments:

  • xmlDocument – a valid xmlDocument.
  • nodeName – The name of a node in the xmlDocument.

...
let xmlSingleNode = ArasModules.xml.selectSingleNode(xmlDoc, “created_on”);
...