Returns all of the element's children as an array of XML objects. When the name parameter is specified, then it will return all children that match that name or path. The path is a series of elements and sub-elements, separated by slashes. @webref xml:method @webBrief Returns an array
()
| 436 | * @webBrief Returns an array containing all child elements |
| 437 | */ |
| 438 | public XML[] getChildren() { |
| 439 | // NodeList children = node.getChildNodes(); |
| 440 | // int childCount = children.getLength(); |
| 441 | // XMLElement[] kids = new XMLElement[childCount]; |
| 442 | // for (int i = 0; i < childCount; i++) { |
| 443 | // Node kid = children.item(i); |
| 444 | // kids[i] = new XMLElement(this, kid); |
| 445 | // } |
| 446 | // return kids; |
| 447 | checkChildren(); |
| 448 | return children; |
| 449 | } |
| 450 | |
| 451 | |
| 452 | /** |