【发布时间】:2010-04-20 20:12:01
【问题描述】:
我需要从另一个程序生成的文件中删除非 xml 标签。
文件是这样的:
Executing Command - Blah.exe ...
-----Command Output-----
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
<?xml version="1.0"?>
<testResults>
<finalCounts>
<right>7</right>
<wrong>4</wrong>
<ignores>0</ignores>
<exceptions>0</exceptions>
</finalCounts>
</testResults>
Exit-Code: 15
如何在java中轻松去除非xml文本?
【问题讨论】:
标签: java xml text-processing