NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't open the xml report file

If I try to open a test report generated by Test Stand I get this message:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


An invalid character was found in text content. Error processing resource 'file:///K:/ABU/Projects/PJ0307-PRT2_COM/Work/5_S...

\x17?\x08  
ÿþ <HEAD
 
What am I doing wrong?
0 Kudos
Message 1 of 6
(3,824 Views)

Hi,

Should this 'file:///K:/ABU/Projects/PJ0307.....'

be 'file:///K:\ABU\Projects\PJ0307.....' Is this the path to a failure link?

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,816 Views)

Hi

Can you please post the XML report and the stylesheet which displays the above error.

Thank you

Anand Jain

National Instruments

 

0 Kudos
Message 3 of 6
(3,819 Views)
Please see the attachments
0 Kudos
Message 4 of 6
(3,803 Views)

Hi
It looks like your report was missing the encoding attribute in the header. Once I put the encoding attribute it seems to fix the problem.

The report current has <?xml version="1.0"?>
The fixed report has <?xml version="1.0" encoding="iso-8859-1" ?>

TestStand 3.1 or greater puts the encoding attribute in the xml report when it is generated.
Questions for you -
1. What version of TestStand are you using
2. Do you have access to TestStand 3.1 or greater?

If you have access to TestStand 3.1 or greater you can migrate the changes from the "AddReportHeader" sequence in reportgen_xml.seq from the following location
<TestStand>\Components\NI\Models\TestStandModels to your existing process model. If you do so,  you will also need to migrate changes from modelsupport2.dll to your dll.

Hope this helps.

Regards
Anand Jain
National Instruments


0 Kudos
Message 5 of 6
(3,796 Views)
Yes that was the problem. Thank you Anand very much for helping me!
 
I am using Test Stand 3.1

Message Edited by Igor_Jovanovic on 01-26-2006 06:46 AM

0 Kudos
Message 6 of 6
(3,776 Views)