Page History
Wiki Markup |
---|
{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=88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946}{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:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_des|text=|trigger=button}{sub-section}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_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:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_ret|text=|trigger=button}{sub-section}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_see|text=|trigger=button}{sub-section}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_see|text=|trigger=button}{sub-section}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_sam|text=|trigger=button}{sub-section}{sub-section:88565A02F39900C2-0964F09B-4B474249-A1448206-67E7D9205AF0CB8BFDF9B946_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=4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7}{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:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_des|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_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:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_ret|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_see|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_see|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_sam|text=|trigger=button}{sub-section}{sub-section:4E4AD5F0BA8C8F7F-186195CB-427C43DB-BD54A066-D5198CFDFE9DF6735B0C21E7_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=91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551}{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:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_des|text=|trigger=button}{sub-section}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_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:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_ret|text=|trigger=button}{sub-section}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_ret|trigger=none|class=sIndent}[XmlNode]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_see|text=|trigger=button}{sub-section}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_see|text=|trigger=button}{sub-section}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_sam|text=|trigger=button}{sub-section}{sub-section:91C02B09C0E0C87A-E8217D6F-411B477F-BC95ABC4-ADBBFED1AF9C37F09D499551_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=9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29}{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:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_des|text=|trigger=button}{sub-section}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_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:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_ret|text=|trigger=button}{sub-section}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_see|text=|trigger=button}{sub-section}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_see|text=|trigger=button}{sub-section}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_sam|text=|trigger=button}{sub-section}{sub-section:9060D8CCC75E5F76-53D687FB-4C0E484F-8BDDB15D-AC93EDEE9F60FDAB7A76BE29_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=6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575}{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:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_des|text=|trigger=button}{sub-section}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_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:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_ret|text=|trigger=button}{sub-section}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_see|text=|trigger=button}{sub-section}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_see|text=|trigger=button}{sub-section}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_sam|text=|trigger=button}{sub-section}{sub-section:6FA04B9EF40A58C4-DBA5164B-47E64219-81FF811F-9CE7562CAAF78A14A92EB575_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=6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD}{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:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_des|text=|trigger=button}{sub-section}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_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:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_ret|text=|trigger=button}{sub-section}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_see|text=|trigger=button}{sub-section}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_see|text=|trigger=button}{sub-section}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_sam|text=|trigger=button}{sub-section}{sub-section:6FA917EB38D1400A-82F2834A-48F0491A-AAE89ACD-21D0BC1CB978ACA3593E66DD_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} |
Overview
Content Tools
Activity