size()
Instance Public methods
Returns the number of Element
children of the parent object.
1 2 3 | doc = Document. new '<a>sean<b/>elliott<b/>russell<b/></a>' doc.root.size #-> 6, 3 element and 3 text nodes doc.root.elements.size #-> 3 |
Please login to continue.