Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Testand XML report namespace prefix

$
0
0

Hi,

I have generated XML reports (using the 'tr5_horizontal.xsl) from two different sequences. The report generation options are set using the 'ReportOptions' sequence file callback and as far as I can see, exactly same options are set for both sequences. However the actual XML reports generated are different. As you can see from the screenshot below, one of them (report on left hand side - LHS) has  prefixes for all the elements (Eg trc: TestResults , tr: Personnel etc.) whereas the other (report on right hand side - RHS) just has the namespace Universal Resource Identifier (URI) for the prefixes (trc, tr etc) defined in the top level element but the prefix is not used in the child elements.

My questions are:

1. Is there some setting in the teststand Report Generation options that could potentially enable/ disable these namespace prefixes in the XML report file.

2. According to the W3Schools XML namespace tutorial (https://www.w3schools.com/xml/xml_namespaces.asp ) the prefix need not be be added for every child element if a default namespace is to be used (default namespace URI is defined as xmlns:"URI")  and conversely if a prefix namespace  is defined, the prefix should be explicitly mentioned in all child elements (atleast this is what all the examples show). 

So, does this mean that the XML report generated by teststand (RHS) is not as per the XML standard?

 

Version of teststand: 2014

 

Testand_XML_Report.PNG

 

Thanks and Regards,

Supreeth


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>