Share

XML node

[Desktop Automation]

An XML node object contains the full information of an XML node.

Properties

Property Read/write Type Description
childcount read-only Number Returns the number of xml nodes of the root entry
section Read/write String Section name of the root entry
value Read-only String Value of the node

Back to top

Methods

Name Syntax Description
addchild node:Addchild(childname:string, adddouble:Boolean); Adds child node, adddouble allows for duplicates
addvalue node:addvalue(nodename:string, value:string/int); Adds a value to the XML file
childexists node:childexists(nodename:string); Returns Boolean whether nodename in the XML file exists
findchild Childnode = node:Findchild(childname:string); Finds childnode
getattribut node:getattribute(nodename:string) Gets string value of attribute of a node
getattributeint IntValue = node:getattributeint(nodename:string); Gets integer value of node
getattributefloat FloatValue = node:getattributefloat(nodename:string); Gets float value of attribute of a node
getchildint ChildIntvalue = node:Getchildint(child:string); Gets the Integer value of child node
getchildindexed Childvalue = node:Getchildindexed(childindex:string); Returns child value by index
getchildintdef ChildIntvalue = node:Getchildintdef(child:string; value:number); Gets the Integer value of child or value
getchildfloat ChildIntvalue = node:Getchildfloat(child:string); Gets Float value of child node
getchildfloatdef ChildIFloatvalue = node:Getchildintdef(child:string; value:number); Gets Float value of child node or value
getchildvalue Childvalue = node:Getchildvalue(childname:string); Returns child value
hasattribute Boolean Value = node:hasattribute(attribute_name:string) Returns true when a node has a specific attribute

Back to top

Was this information helpful?