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=FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571}{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:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_des|text=|trigger=button}{sub-section}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_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:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_ret|text=|trigger=button}{sub-section}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_see|text=|trigger=button}{sub-section}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_see|text=|trigger=button}{sub-section}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_sam|text=|trigger=button}{sub-section}{sub-section:FC7D287533C90D84-B49DF1F8-47C747B0-ABEC8B8A-66BC967999D6A6CD37FF9571_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=C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578}{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:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_des|text=|trigger=button}{sub-section}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_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:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_ret|text=|trigger=button}{sub-section}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_see|text=|trigger=button}{sub-section}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_see|text=|trigger=button}{sub-section}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_sam|text=|trigger=button}{sub-section}{sub-section:C98257330C953AFF-2CB204AF-4DB44F10-B3F9BB7B-A6F7192827B4ADB6BD4EB578_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=9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5}{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:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_des|text=|trigger=button}{sub-section}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_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:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_ret|text=|trigger=button}{sub-section}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_ret|trigger=none|class=sIndent}[XmlNode]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_see|text=|trigger=button}{sub-section}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_see|text=|trigger=button}{sub-section}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_sam|text=|trigger=button}{sub-section}{sub-section:9FB5619B6FC6A02F-9B8EB093-482D4679-85288BB3-C458E78B41BDEFB8956DEEB5_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=6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11}{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:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_des|text=|trigger=button}{sub-section}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_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:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_ret|text=|trigger=button}{sub-section}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_see|text=|trigger=button}{sub-section}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_see|text=|trigger=button}{sub-section}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_sam|text=|trigger=button}{sub-section}{sub-section:6CD5BC8E9BD5BDD7-C849EFC6-4D094C5E-9A21BD6E-73C18CED2D32D75893A0FF11_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=2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E}{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:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_des|text=|trigger=button}{sub-section}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_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:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_ret|text=|trigger=button}{sub-section}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_see|text=|trigger=button}{sub-section}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_see|text=|trigger=button}{sub-section}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_sam|text=|trigger=button}{sub-section}{sub-section:2FE33093452ECD30-CA982DCA-4B734DB9-8D08A415-A83F8DBC08989051F6C9D35E_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=858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6}{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:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_des|text=|trigger=button}{sub-section}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_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:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_ret|text=|trigger=button}{sub-section}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_see|text=|trigger=button}{sub-section}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_see|text=|trigger=button}{sub-section}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_sam|text=|trigger=button}{sub-section}{sub-section:858E6F7DAA77D36C-7D136612-4692436A-9C90833E-540B292923654099E27780B6_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