How I will convert book.xml
file which is attached in my solution to XML string like:
<book><name>C++</name><price>170</price></book>
Actually I need to convert book.xml
file to JSON data. There are many examples which is converting XML string to JSON. but not XML file book.xml
to JSON
. Can anybody please help me to convert a specific XML file to XML string.
check the below links you will get to know how to convert xmltoJson..
http://www.fyneworks.com/jquery/xml-to-json/
http://davidwalsh.name/convert-xml-json