c******n 发帖数: 4965 | 1 for example
afaf asf saf
asdfasdf
I only want to dump out the verbatim string
asaf asf saf
asdfasf
how can I do this? I don't want to loop over all the children of Element
manually, cuz I have to check the type of the Node one by one.
Transformer can dump out the entire Element, but I don't want the root tag
and attr.
Thanks | s***8 发帖数: 1136 | 2 use dom api to loop, or use other more friendly higher-level lib like jdom
dom4j. xpath may also help |
|