in reply to Re: Accessing xml elements using XML::Parser module
in thread Accessing xml elements using XML::Parser module

hey, its awesome! thank you. I have slightly modified my xml.
<booklist> <book type="technical"> <author mainpage = "simple" finalpage = "style" ><author1>Book 1 + author1 1</author1></author> <author>Book 1 author 2</author> <title>Book 1 title</title> <isbn>Book1ISBN</isbn> </book> <book type="fiction"> <author>Book 2 author 1</author> <author>Book 2 author 2</author> <title>Book 2 title</title> <isbn>Book2ISBN</isbn> </book> <book type="technical"> <author>Book 3 author 1</author> <author>Book 3 author 2</author> <author>Book 3 author 3</author> <title>Book 3 title</title> <isbn>Book3ISBN</isbn> </book> </booklist>
how can i access author1 field now?

Replies are listed 'Best First'.
Re^3: Accessing xml elements using XML::Parser module
by toolic (Bishop) on Feb 16, 2012 at 14:35 UTC
    how can i access author1 field now?
    • Read the documentation; I already provided the link to you.
    • Look at my code, and try to understand how it works.
    • Modify the code I provided; this change should be straightforward.