servoy sReturnTypes 2 100% height: 30px; 2 Supported Clients sWordList SmartClient sWordList WebClient sWordList NGClient
servoy sSummary 12% 30% 58% height: 30px; 3 Methods Summary Return all the attribute names of the current node. Return the value of the named attribute. Return the child nodes of the current node. Return the name of the XML node element. Return the text-value of the XML node element. Return the type of the XML node element.
function servoy sDetail 2 100% height:30px 2 Methods Details getAttributeNames name getAttributeNames() des 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:88565A02-0964-4B47-A144-67E7D9205AF0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_ret|text=|trigger=button}{sub-section}{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_see|text=|trigger=button}{sub-section}{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_see|text=|trigger=button}{sub-section}{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_sam|text=|trigger=button}{sub-section}{sub-section:88565A02-0964-4B47-A144-67E7D9205AF0_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=4E4AD5F0-1861-427C-BD54-D5198CFDFE9D}{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:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_des|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_des|trigger=none|class=sIndent} ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getAttributeValue name getAttributeValue(attributeName) des sIndent Return the value of the named attribute. {sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_ret|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_see|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_see|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_sam|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0-1861-427C-BD54-D5198CFDFE9D_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=91C02B09-E821-411B-BC95-ADBBFED1AF9C}{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:91C02B09-E821-411B-BC95-ADBBFED1AF9C_des|text=|trigger=button}{sub-section}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_des|trigger=none|class=sIndent} prs Parameters
sIndent attributeName ; ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getChildNodes name getChildNodes() des sIndent Return the child nodes of the current node. {sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_ret|text=|trigger=button}{sub-section}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_ret|trigger=none|class=sIndent}[XmlNode]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_see|text=|trigger=button}{sub-section}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_see|text=|trigger=button}{sub-section}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_sam|text=|trigger=button}{sub-section}{sub-section:91C02B09-E821-411B-BC95-ADBBFED1AF9C_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=9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60}{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:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_des|text=|trigger=button}{sub-section}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_des|trigger=none|class=sIndent} ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getName name getName() des sIndent Return the name of the XML node element. {sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_ret|text=|trigger=button}{sub-section}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_see|text=|trigger=button}{sub-section}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_see|text=|trigger=button}{sub-section}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_sam|text=|trigger=button}{sub-section}{sub-section:9060D8CC-53D6-4C0E-8BDD-AC93EDEE9F60_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=6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7}{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:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_des|text=|trigger=button}{sub-section}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_des|trigger=none|class=sIndent} ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getTextValue name getTextValue() des 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:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_ret|text=|trigger=button}{sub-section}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_see|text=|trigger=button}{sub-section}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_see|text=|trigger=button}{sub-section}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_sam|text=|trigger=button}{sub-section}{sub-section:6FA04B9E-DBA5-47E6-81FF-9CE7562CAAF7_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=6FA917EB-82F2-48F0-AAE8-21D0BC1CB978}{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:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_des|text=|trigger=button}{sub-section}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_des|trigger=none|class=sIndent} ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getType name getType() des sIndent Return the type of the XML node element. {sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_ret|text=|trigger=button}{sub-section}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_see|text=|trigger=button}{sub-section}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_see|text=|trigger=button}{sub-section}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_sam|text=|trigger=button}{sub-section}{sub-section:6FA917EB-82F2-48F0-AAE8-21D0BC1CB978_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} ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow