• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache digester parsing issue

 
Babu Kalarikkal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
anyone please suggest me a digester rule to parse the below xml with different child elements...?

<city_details>
<city_details_row>
<city_name>Hubli, Karnataka</city_name>
<city_id>329</city_id>
<airports>
<international>N</international>
<domestic>Y</domestic>
</airports>
<railway>Y</railway>
</city_details_row>

<city_details_row>
<city_name>Hyderabad, AP</city_name>
<city_id>223</city_id>
<airports>
<international>Y</international>
<domestic>Y</domestic>
</airports>
<railway>
<railway1>Hyderabad</railway1>
<railway2>Secundrabad</railway2>
<railway3>Kachiguda</railway3>
</railway>
</city_details_row>
</city_details>
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have you made an attempt at accomplishing what you want to do?
Showing us a failed attempt will increase the understanding of the question and the chance of receiving an answer.
Best wishes!
 
Babu Kalarikkal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ivan,

I am new to this, while parsing a predefined xml there is not a problem , in my question there is a railway element , how can I parse using digester...?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic