# After long discussions we came to a conclusion on how to make this # extension consistent in itself. # Thanks to Rob for all the work
$node->count($subnode_name) - returns count of subnodes with specified name $node->attributes() - returns array of attributes