(String[] items, int offset)
| 544 | |
| 545 | |
| 546 | protected XML[] getChildrenRecursive(String[] items, int offset) { |
| 547 | if (offset == items.length-1) { |
| 548 | return getChildren(items[offset]); |
| 549 | } |
| 550 | XML[] matches = getChildren(items[offset]); |
| 551 | XML[] outgoing = new XML[0]; |
| 552 | for (int i = 0; i < matches.length; i++) { |
| 553 | XML[] kidMatches = matches[i].getChildrenRecursive(items, offset+1); |
| 554 | outgoing = (XML[]) PApplet.concat(outgoing, kidMatches); |
| 555 | } |
| 556 | return outgoing; |
| 557 | } |
| 558 | |
| 559 | |
| 560 | /** |
no test coverage detected