rgbcof
asked on
perl, how to get to xml child nodes
<house>
<rented>
<name>james</name>
<name>bob</bob>
</rented>
<owned>
<name>dave</name>
<name>charles</name>
</owned>
</house>
@ownedHouses = $xml_root->getElementsByTa gName("nam e"); #will retrieve names from both <rented> and <owned> houses. How do I get just the owned house ones.
<rented>
<name>james</name>
<name>bob</bob>
</rented>
<owned>
<name>dave</name>
<name>charles</name>
</owned>
</house>
@ownedHouses = $xml_root->getElementsByTa
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER