crmpicco
11-20-2006, 04:21 PM
Is there a way in Perl to count the number of employee nodes in an XML document?
<?xml version='1.0'?>
<staff>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
</staff>
<?xml version='1.0'?>
<staff>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
<employee>
... other nodes in here ...
</employee>
</staff>