I have a XML with a structure similar to this:
<category>
<subCategoryList>
<category>
</category>
<category>
<!--and so on -->
</category>
</subCategoryList>
</category>
I have a Category class that has a subcategory
list (List<Category>
). I'm trying to parse this XML file with XPath, but I can't get the child categories of a category.
How can I do this with XPath? is there a better way to do this?
Thanks in advance.