DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Returns
Sample
nodes = plugins.XmlReader.readXmlDocumentFromString("<root attr1='value1' attr2='value2'/>") rootNode = nodes[0]; attributes = rootNode.getAttributeNames(); application.output(attributes[0]) application.output(attributes[1]) val1 = rootNode.getAttributeValue('attr1'); application.output(val1)
Parameters
nodes = plugins.XmlReader.readXmlDocumentFromString('<father><child1>John</child1><child2>Mary</child2></father>'); application.output(nodes[0].getName()) application.output(nodes[0].getTextValue()) application.output(nodes[0].getType()) childs = nodes[0].getChildNodes() application.output(childs[0].getName()) application.output(childs[0].getTextValue()) application.output(childs[0].getType()) subChilds = childs[0].getChildNodes() application.output(subChilds[0].getName()) application.output(subChilds[0].getTextValue()) application.output(subChilds[0].getType())