I have an xml file "books.xml" as follows(The 1st record of books.xml):
<book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description>
I want to store the names of individual tags e.g author,title etc in an array of strings. But for that purpose, I only want to read the first record from books.xml. How can I do so?