Bhavna Chaudhri

Bhavna Chaudhri

  • NA
  • 529
  • 18.9k

Convert following XMl to List

Nov 23 2020 9:14 AM
How to convert the following XML to List of Object?
 
  1. <bookDetails xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>  
  2.                       
  3.   
  4. <book>  
  5.   <title>Everyday Italian</title>  
  6.   <author>Giada De Laurentiis</author>  
  7.   <year>2005</year>  
  8.   <price>30.00</price>  
  9. </book>  
  10.   
  11. <book>  
  12.   <title>Harry Potter</title>  
  13.   <author>J K. Rowling</author>  
  14.   <year>2005</year>  
  15.   <price>29.99</price>  
  16. </book>  
  17.   
  18.                  </bookDetails>";   

Answers (1)