How do I parse XML in PHP that looks like this?

jumpingrightin

New member
<packages total_weight="14" total_packages="1">
<package length="15" width="14" height="12" weight="14.0"/>
</packages>

The above is an example of the kind of XML I have to parse in PHP. How is this done so it gets the sub-fields(for lack of a better name) such as height="12"? Thanks!
 
Back
Top