#1
|
|||
|
|||
Using Build Log in XML
I'm trying to use the XML build log as a data source for our build report. So I tried to parse the XML during the build, but I got an error saying that it wasn't well formatted. So I went back and checked it, and it wasn't. But then, when I check the XML file on the build server after the all the build steps and opened it up in IE, and it parsed the XML file just fine. So I guess log is written as each step is executed as text file, therefore the XML log file is in half-ass state when I try to use it during the build. Is there any way to resolve this issue? Or I just can't use the log file in XML format during the build?
My hope is that whenever XML text file is flushed on the disk, it want the XML file to be well formatted. |
#2
|
|||
|
|||
The XML tags aren't closed until the build completes. To process the log file during the build, add a Transform XML Log action to close the tags (check 'Close ...tags', clear out the Stylesheet field, and specify an XML Output file), then perform your work on the file output from that step. See http://www.visualbuild.com/Manual/?t...mlogaction.htm for more details.
|
|
|