Hello,
While attempting to write a custom XML translation (XSL) for a TestStand result XML file, I found that the XML header would get corrupted and the string "; charset=iso-8859-1" would be inserted in the XML header. When the tag "omit-xml-declaration" is set to "yes", the first line of my XML output file still has the string "; charset=iso-8859-1" inserted into the first line. I think this may have something to do with the default TS reportgen_xml.seq sequence. Does anyone have any ideas?
XSL Source (just the beginning)
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" id="TS14.0.0"><xsl:namespace-alias stylesheet-prefix="xsl" result-prefix="#default"/> <xsl:namespace-alias stylesheet-prefix="msxsl" result-prefix="#default"/> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="no" />
XML Source (just the beginning)
<?xml version="1.0" encoding="iso-8859-1" ?><?xml-stylesheet type="text/xsl" href="C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\TestStandModels\StyleSheets\myNewStylesheet.xsl"?><Reports><Report Type='UUT' Title='UUT Report' Link='-1-2014-10-7-10-22-44-592' UUTResult='Failed' StepCount='8'><Prop Name='UUT' Type='Obj' TypeName='UUT' Flags='0x0'><Prop Name='SerialNumber' Type='String' Flags='0x0'><Value></Value></Prop><Prop Name='UUTLoopIndex' Type='Number' Flags='0x0'><Value>1</Value></Prop><Prop Name='CriticalFailureStack' Type='Array' LBound='[0]' HBound='[0]' ElementType='Obj' Flags='0x0'>
XML Output: (first line)
<?xml ve; charset=iso-8859-1rsion="1.0"?>
Thanks,
Aaron