Aras Innovator Platform

How to Convert Strings

The ArasModules.xml.parseString function takes a string and converts it into an XmlDOMDocument.

The function takes the following argument:

  • itemND – a string that conforms to a valid XML structure.

    ...
    let document = ArasModules.xml.parseString('<Item action="get”
    type="File"><filename>sample.txt</filename></Item>');
    ...