how to parser the following XML using DOM PARSER
<Result>
<Status>OK</Status>
<All_BookDetails>
<BookAuthor>Mohammadi Reyshahri</BookAuthor>
<BookRating>0</BookRating>
<BookDescription>Islamic belief and ideology</BookDescription>
<DatePublished>May 1 1992 12:00AM</DatePublished>
<BookTitle>Are You Free or Slave</BookTitle>
<BookID>171</BookID>
<BookCode>EN171</BookCode>
<BookImage>1.jpg</BookImage>
<TotalPages>164</TotalPages>
</All_BookDetails>
</Result>
i want to get the values of BookAuthor
, BookRating
, BookDescription
,DatePublished
, BookTitle
, BookID
, BookCode
, BookImage
TotalPages
how can i do this. I tried to parse the above XML selecting All_BookDetails
as parent node but nodelist
returning me the 0 in length
thanks
Getting XML DOM element
then I tried this and its worked