forum

Home / DeveloperSection / Forums / How to parsing XML and extracting nodes?

How to parsing XML and extracting nodes?

Jayden Bell 1938 27-Jan-2015

I have the following XML:

<bookstore>
    <book genre='autobiography' publicationdate='1981-03-22' ISBN='1-861003-11-0'>
        <title>The Autobiography of Benjamin Franklin</title>
        <author>
            <first-name>Benjamin</first-name>
            <last-name>Franklin</last-name>
        </author>
        <price>8.99</price>
    </book>
</bookstore>

I want to read it and display the result as following:

Genre: autobiography

Publication: 1981-03-22

ISBN: 1-861003-11-0

Title: The Autobiography of Benjamin Franklin

Author: Benjamin Franklin

Price: 8.99


Updated on 27-Jan-2015

Can you answer this question?


Answer

1 Answers

Liked By