PDA

View Full Version : Using Build Log in XML


vbNullString
12-15-2005, 03:57 PM
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.

kinook
12-15-2005, 08:27 PM
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/?transformlogaction.htm for more details.