Internal handler to add the node structure.
(Node newNode)
| 596 | |
| 597 | /** Internal handler to add the node structure. */ |
| 598 | protected XML appendChild(Node newNode) { |
| 599 | node.appendChild(newNode); |
| 600 | XML newbie = new XML(this, newNode); |
| 601 | if (children != null) { |
| 602 | children = (XML[]) PApplet.concat(children, new XML[] { newbie }); |
| 603 | } |
| 604 | return newbie; |
| 605 | } |
| 606 | |
| 607 | |
| 608 | /** |
no test coverage detected