in reply to XML::twig counting elements that don't have a certain attribute/value on them
It's hard to check without the data, but you could do $qp->children( 'q[@supp != "yes"]'). Actually if all you want is the number of such children, you can use the children_count method instead of taking scalar ( $qp->children....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::twig counting elements that don't have a certain attribute/value on them
by mertserger (Curate) on Feb 11, 2010 at 15:09 UTC | |
by mirod (Canon) on Feb 12, 2010 at 05:20 UTC | |
by mertserger (Curate) on Mar 05, 2010 at 11:43 UTC |