I am new to xpath
I have a XML structure like this
<book>
<bookstores>
<bookstore name="ABC">
<property name="" value=""></property>
<property name="" value=""></property>
<property name="" value=""></property>
</bookstore>
<bookstore name="XYZ">
<property name="" value=""></property>
<property name="" value=""></property>
<property name="" value=""></property>
</bookstore>
</bookstores>
</book>
how to iterate through bookstores node and get the bookstore attribute name and the properties into a map like which contains bookstore name as key and list of properties as values HashMap> using XPath API in java?
Thanks in advance.
No comments:
Post a Comment