Append an element under the active element of XML object. The new element now becomes the active element. @param element The name of element to append. @return The modified XML after appending the element.
(String element)
| 97 | * @return The modified XML after appending the element. |
| 98 | */ |
| 99 | public XML append(String element) { |
| 100 | Element newElement = ownerDoc.createElement(element); |
| 101 | activeElement.appendChild(newElement); |
| 102 | return new XML(newElement); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Append an element, with text, under the active element of XML object. |
no outgoing calls