{div:style=display:none} 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{div} {div:id=description}{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]\[]{td}{td}[#getAttributeNames]\() Return all the attribute names of the current node.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getAttributeValue]\(attributeName) Return the value of the named attribute.{td}{tr}{tbody}{tbody}{tr}{td}[XmlNode]\[]{td}{td}[#getChildNodes]\() Return the child nodes of the current node.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\() Return the name of the XML node element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTextValue]\() Return the text\-value of the XML node element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getType]\() Return the type of the XML node element.{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=getAttributeNames}{tr:id=name}{td}h6.getAttributeNames{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getAttributeNames{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getAttributeValue-String}{tr:id=name}{td}h6.getAttributeValue{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getAttributeValue{span}{span}\(attributeName){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} attributeName {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getChildNodes}{tr:id=name}{td}h6.getChildNodes{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[XmlNode]\[]{span}{span:style=font-weight: bold;}getChildNodes{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[XmlNode]\[]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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()) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getName}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getName{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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()) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTextValue}{tr:id=name}{td}h6.getTextValue{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getTextValue{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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()) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getType}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getType{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript} 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()) {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |