cpaint_node Method Summary
object add_node ( string nodename [, string id ] )
In addition to trying to describe all the technical points in the most detailed and understandable way for everyone, we also publish articles with advice on the latest news, how to become a sought-after specialist, how to combine study and work, and even about where to find essay title suggestion, for an important performance or for a motivational essay. We strive to be comprehensively useful for all our readers and students.
adds a new subnode to the current node.
» string nodenamename of the new node
» string idid of the new node (optional)
» object cpaint_node
» Access: public
This method enables you to configure nested responses (for the XML and OBJECT response types).
nodename is the name of the subnode to create and will be mapped as XML tag name of the nested tag.
The optional id parameter is used to set the id attribute of the nested XML tag.
This method will return a new instance of cpaint_node which can in turn contain subnodes again, as you see fit.
Warning: In several languages, such as PHP4, you need to assign the response of cpaint_node.add_node() to a local variable by reference or else CPAINT will never know the configuration you perform on the subnode object.