How to Create a NodeType
Copy
ArasModules.xml.createNode creates a NodeType. It functions identically to the standard XmlDOMDocument.createNode(Type, name, namespaceURL).
The function takes the following arguments:
- xmlDocument – a valid XmlDOMDocument.
- Type – The IXMLDOMNodeType that is being applied. For example, 1 is a NODE_ELEMENT.
- Name – The name of the NodeType being created.
- url – A string defining the namespace URL.
...let newNode = ArasModules.xml.createNode(xmlDoc, 1, ‘sample’, '');...