Como obter o conteúdo do nó do JDOM
Estou escrevendo um aplicativo em java usando import org.jdom. *;
My XML é válido, mas às vezes contém tags HTML. Por exemplo, algo como isto:
<program-title>Anatomy & Physiology</program-title>
<overview>
<content>
For more info click <a href="page.html">here</a>
<p>Learn more about the human body. Choose from a variety of Physiology (A&P) designed for complementary therapies.&#160; Online studies options are available.</p>
</content>
</overview>
<key-information>
<category>Health & Human Services</category>
Então, meu problema é com as tags <p> dentro do nó overview.conten
Eu esperava que esse código funcionasse:
Element overview = sds.getChild("overview");
Element content = overview.getChild("content");
System.out.println(content.getText());
mas retorna em branc
Como devolver todo o texto (tags aninhadas e tudo) no nó overview.content?
Obrigad