icon666
icon666

Reputation: 13

using apache digester to parse xml

have an xml of the form

<Node name="1">
   <Node name="2">
       <Node name="4"></Node>
   </Node>
   <Node name = "3">
       <Node name="5"></Node>
    </Node>
</Node>

i want to parse the xml using digester and obtain the following datastructure

Node{
 String name;
 List<Node> nodeList
}

Is this possible using digester?

Upvotes: 0

Views: 423

Answers (1)

maximdim
maximdim

Reputation: 8169

Yes, it is possible. I suggest you read Digester documentation and post concrete question if something doesn't work as you expect it to.

Upvotes: 0

Related Questions