开发者

Get Text Content of xml element

开发者 https://www.devze.com 2022-12-09 05:24 出处:网络
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 al

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?


You'll need to iterate and append.

0

精彩评论

暂无评论...
验证码 换一张
取 消