Internal handler to add the node structure.
(Node newNode)
| 577 | |
| 578 | /** Internal handler to add the node structure. */ |
| 579 | protected XML appendChild(Node newNode) { |
| 580 | node.appendChild(newNode); |
| 581 | XML newbie = new XML(this, newNode); |
| 582 | if (children != null) { |
| 583 | children = (XML[]) PApplet.concat(children, new XML[] { newbie }); |
| 584 | } |
| 585 | return newbie; |
| 586 | } |
| 587 | |
| 588 | |
| 589 | /** |
no test coverage detected