A simple way (in java) to remove headers from xml files
        Posted  
        
            by Andersson Melo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Andersson Melo
        
        
        
        Published on 2010-04-20T20:12:01Z
        Indexed on 
            2010/04/20
            20:33 UTC
        
        
        Read the original article
        Hit count: 334
        
I need remove non-xml tags from file generated by another program.
The file is some like this:
Executing Command - Blah.exe ...
-----Command Output-----
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
<?xml version="1.0"?>
<testResults>
<right>7</right>
    <wrong>4</wrong>
    <ignores>0</ignores>
    <exceptions>0</exceptions>
  </finalCounts>
</testResults>
Exit-Code: 15
How to remove the non-xml text easily in java?
© Stack Overflow or respective owner