別のプログラムによって生成されたファイルから非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テキストを簡単に削除するにはどうすればよいですか?