I'm trying to loop through this XML to get specifically to the count
fields.
What's the most efficient way to do this? I don't mind using libraries as long as they don't require root access to install since I'm on shared hosting. Is using libraries supposed to be a better practice or the opposite?
<category>
<name>Category 1</name>
<subcategories>
<subcategory>
<name>Subcategory 1.1</name>
<count>18</count>
<subcategory>
<subcategory>
<name>Subcategory 1.2</name>
<count>29</count>
<subcategory>
<subcategories>
<category>
<category>
<name>Category 2</name>
<subcategories>
<subcategory>
<name>Subcategory 2.1</name>
<count>18</count>
<subcategory>
<subcategory>
<name>Subcategory 2.2</name>
<count>29</count>
<subcategory>
<subcategories>
<category>