Home
Sign Up
Sign In
V2EX
›
Java
Java 删除 XML 文件某个节点后有空行如何解决
scorpioL
·
Oct 16, 2018
· 3401 views
This topic created in 2956 days ago, the information mentioned may be changed or developed.
获取要删除的节点 node 后,使用 node.getParentNode().removeChild(node);删除了节点,但输出之后的 xml 有一行空行,怎么把这行空行去掉?
Node
节点
xml
删除
1 replies
•
2018-11-02 16:19:01 +08:00
chanchan
Nov 2, 2018
1
处理完再用流读一遍删除空行算了
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1095 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 18:18
·
PVG 02:18
·
LAX 10:18
·
JFK 13:18
♥ Do have faith in what you're doing.
❯