{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{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]\()
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:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=24070F1A-46D8-43D5-A85D-21EF1F3B957F}{tr:id=name}{td}h6.getAttributeNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getAttributeNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_des|text=|trigger=button}{sub-section}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_des|trigger=none|class=sIndent}Return all the attribute names of the current node.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_ret|text=|trigger=button}{sub-section}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_see|text=|trigger=button}{sub-section}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_see|text=|trigger=button}{sub-section}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_sam|text=|trigger=button}{sub-section}{sub-section:24070F1A-46D8-43D5-A85D-21EF1F3B957F_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D1B5B452-987B-41B9-BF45-1C46783B11DE}{tr:id=name}{td}h6.getAttributeValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getAttributeValue{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_des|text=|trigger=button}{sub-section}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_des|trigger=none|class=sIndent}Return the value of the named attribute.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_ret|text=|trigger=button}{sub-section}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_see|text=|trigger=button}{sub-section}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_see|text=|trigger=button}{sub-section}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_sam|text=|trigger=button}{sub-section}{sub-section:D1B5B452-987B-41B9-BF45-1C46783B11DE_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=150A0A59-9A59-4CA3-A018-94E1483A5316}{tr:id=name}{td}h6.getChildNodes{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[XmlNode]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getChildNodes{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_des|text=|trigger=button}{sub-section}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_des|trigger=none|class=sIndent}Return the child nodes of the current node.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_ret|text=|trigger=button}{sub-section}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_ret|trigger=none|class=sIndent}[XmlNode]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_see|text=|trigger=button}{sub-section}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_see|text=|trigger=button}{sub-section}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_sam|text=|trigger=button}{sub-section}{sub-section:150A0A59-9A59-4CA3-A018-94E1483A5316_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1F625961-12D9-4925-B9FB-0AB61C43A471}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_des|text=|trigger=button}{sub-section}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_des|trigger=none|class=sIndent}Return the name of the XML node element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_ret|text=|trigger=button}{sub-section}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_see|text=|trigger=button}{sub-section}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_see|text=|trigger=button}{sub-section}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_sam|text=|trigger=button}{sub-section}{sub-section:1F625961-12D9-4925-B9FB-0AB61C43A471_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=835CE537-95F5-44B2-AB7A-E20C2E946680}{tr:id=name}{td}h6.getTextValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTextValue{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_des|text=|trigger=button}{sub-section}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_des|trigger=none|class=sIndent}Return the text-value of the XML node element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_ret|text=|trigger=button}{sub-section}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_see|text=|trigger=button}{sub-section}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_see|text=|trigger=button}{sub-section}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_sam|text=|trigger=button}{sub-section}{sub-section:835CE537-95F5-44B2-AB7A-E20C2E946680_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=00E836B9-15E3-4DE4-A5EA-92BF50B68AA6}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_des|text=|trigger=button}{sub-section}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_des|trigger=none|class=sIndent}Return the type of the XML node element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_ret|text=|trigger=button}{sub-section}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_see|text=|trigger=button}{sub-section}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_see|text=|trigger=button}{sub-section}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_sam|text=|trigger=button}{sub-section}{sub-section:00E836B9-15E3-4DE4-A5EA-92BF50B68AA6_sam|class=sIndent|trigger=none}{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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}