CRS File Preparation Guide

Tags: CRS, File preparation, XML Schema, Entity Reference

DATA PREPARATION FOR CRS XML REPORT

XML Schema Best Practices

All XML files to be transmitted through the CTS should conform to the following best practices for XML schemas. Certain characters are prohibited and, if included, will cause the file to be rejected for transmission with the Error Code 50005.

Entity Reference

If an XML file contains one or more of these characters, these should be replaced by the following predefined entity references to conform to XML schema best practices.

Character

Description

Entity Reference

& Ampersand
&
< Less Than
&lt;

Optional Entity Reference

If an XML file contains one or more of these characters, their presence will not cause a file error. The characters should, however, be replaced by the following predefined entity references to conform to XML schema best practices.

Character

Description

Entity Reference

> Greater Than
&gt;
' Apostrophe
&apos;
" Quotation Mark
&quot;

SQL Injection Validation

If an XML document contains one of these combinations of characters, the data packet will be rejected and a failed threat detection (error) notification will be generated. These combinations of characters are not allowed. To prevent file errors, please do not include any of these combinations of characters.

Character

Description

Entity Reference

-- Double Dash N/A
/* Slash Asterisk N/A
&# Ampersand Hash N/A