Creates and adds a child named 'tag' to the XML node. When creating an XMLDocument, this method is used to add the nodes to the xml root element. Example:
| xmlDoc = XMLDocument() xmlNode = addRootFor(xmlDoc, tag : "invoice") xmlNodeTMP = addChildFor(xmlNode, tag : "customer") xmlNodeTMP.text = invoice.customer xmlNodeTMP = addChildFor(xmlNode, tag : "date") xmlNodeTMP.text = formatDate(invoice.date) ... |
| Name | Type | Description | Mode |
|---|---|---|---|
| tag | String | Tag name for child node. | in |