(String[] items, int offset)
| 557 | |
| 558 | |
| 559 | protected XML[] getChildrenRecursive(String[] items, int offset) { |
| 560 | if (offset == items.length-1) { |
| 561 | return getChildren(items[offset]); |
| 562 | } |
| 563 | XML[] matches = getChildren(items[offset]); |
| 564 | XML[] outgoing = new XML[0]; |
| 565 | for (int i = 0; i < matches.length; i++) { |
| 566 | XML[] kidMatches = matches[i].getChildrenRecursive(items, offset+1); |
| 567 | outgoing = (XML[]) PApplet.concat(outgoing, kidMatches); |
| 568 | } |
| 569 | return outgoing; |
| 570 | } |
| 571 | |
| 572 | |
| 573 | /** |
no test coverage detected