Le_Coeur
Le_Coeur

Reputation: 1541

Get Text Content of xml element

So, i have some question about xml Documents in Java. Can i get all text(only text) content of some element and all descendant's elements of this element, without to iterate through all this elements and using Element.getText()? By another words, it must be some analogous function to JavaScript textContent. Or i must to iterate through all nodes?

Upvotes: 1

Views: 918

Answers (1)

alphazero
alphazero

Reputation: 27224

You'll need to iterate and append.

Upvotes: 1

Related Questions