由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - dump out the *** contents *** of an XML element? (org.w3c.dom.Element)
相关主题
C++ | list, queue or map on user defined classeswhitespace 问题
Interview question有会写firefox addons的吗?
算法问题有熟悉as3的吗?菜鸟问个问题
两个矩阵的算法题google maps API other than Javascript?
gmail 是怎么实现那些html功能的基础不行,怎么办
请问一下,用什么语言/库/脚本作GUI比较方便?Java是不是主要用于开发Web的?
XSL questionwhich XML lib you guys are using
还是问一下过来人把,关于xml这里有没有玩Delphi的呀?
相关话题的讨论汇总
话题: element话题: dump话题: xml话题: out话题: contents
进入Programming版参与讨论
1 (共1页)
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
1 (共1页)
进入Programming版参与讨论
相关主题
这里有没有玩Delphi的呀?gmail 是怎么实现那些html功能的
XML有什么好的editor请问一下,用什么语言/库/脚本作GUI比较方便?
刚开始学XMLXSL question
有点挠头还是问一下过来人把,关于xml
C++ | list, queue or map on user defined classeswhitespace 问题
Interview question有会写firefox addons的吗?
算法问题有熟悉as3的吗?菜鸟问个问题
两个矩阵的算法题google maps API other than Javascript?
相关话题的讨论汇总
话题: element话题: dump话题: xml话题: out话题: contents