View Single Post
  #1  
Old 08-01-2004, 01:01 PM
tim.calderwood tim.calderwood is online now
Registered User
 
Join Date: 05-20-2003
Posts: 13
Only one top level element is allowed error

I am having problems with converting the XML logs to HTML. The steps I am doing are...

0. Build our software in performance debug
1. Copy xml file (%LOGFILE%) to a temp file
2. Convert the temp file to XML using the built in function
3. Copy new HTML file to remote server

4. Build our software in release
5. Copy xml file (%LOGFILE%) to a temp file
6. Convert the temp file to XML using the built in function

At this point I get the "Only one top level element is allowed in an XML document." error. Since I am converting a copy of the orginal log in each build loop, I am not sure why I am getting this error. I have the option "Delete log file at the start of each build check" So when I call the script from other script, we start with a new log.

I am attaching the steps to reproduce the error.
Attached Files
File Type: bld logscript.bld (1.8 KB, 1147 views)
Reply With Quote