<div><br>Can I recover with jdom all the nodes of a document xml that call equally??</div>
<div>To extract xml.</div>
<div>My code </div>
<div> </div>
<div>
<p>SAXBuilder builder=new SAXBuilder(false);<br> <br> Document doc=builder.build("file.xml");<br> <br> Element raiz=doc.getRootElement();</p>
<p> List chapter=raiz.getChildren("CHAPTER");<br> Iterator i = chapter.iterator();<br> while (i.hasNext()){<br> Element e= (Element)i.next();</p>
<p> Element section =e.getChild("SECTION");<br> List sectionHijos=e.getChildren("SECTION");</p>
<p><br> XMLOutputter out = new XMLOutputter();<br> FileWriter writer = new FileWriter("TestVarios2.xml");<br> out.output(section,writer);<br> writer.flush();<br>
writer.close();</p>
<p>example :</p>
<p>out.output(<font color="#ff0000">sectionHijos</font>,writer)</p>
<p> |--------------------------------------->failed</p>
<p> </p><br> </div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br> </blockquote></div><br>