Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

The following table lists specific problems and conditions that should be detected and handled.

File

Condition

Remarks

  PR_UTF-8.xml

Valid

Valid file with UTF-8 encoding

PR_UTF-8-BOM.xml

Valid

Valid file with UTF-8 encoding with Byte Order Mark

PR_UTF-16.xml

Valid

Valid file with UTF-16 encoding

PR_IS-8859-1.xml

Invalid encoding

The document encoded in something besides UTF-8 or UTF-16

  PR_missing_preamble.xml

Missing preamble

 

  Imports OK, JAXB does not require preamble

PR_invalid_preamble.xml

Invalid preamble

  

PR_invalid_encoding_attribute.xml

Encoding attribute invalid

The encoding attribute in the preamble something besides UTF-8 or UTF-16

  PR_inconsistent_encoding.xml

Encoding attribute inconsistent

The encoding attribute in the preamble valid, but not the same as the actual document encoding

  PR_missing_close_tag.xml

Missing close tag

  

PR_missing_close_tag_slash.xml

Missing / on close tag

  

PR_missing_tag_close_bracket.xml

Missing closing > on tag

  

PR_missing_close_tag_close_bracket.xml

Missing closing > on close tag  

PR_misspelled_tag.xml

Misspelled tag

  

PR_misspelled_close_tag.xml

Misspelled close tag

  

PR_misspelled_tag_and_close_tag.xml

Misspelled tag and close tag

  

PR_missing_required_element.xml

Missing required element

  

PR_unknown_element.xml

Unknown element

  

PR_no_data_required_1.xml

Required element with no data

as <tag></tag>  

PR_no_data_required_2.xml

Required element with no data

as <tag/>  

PR_no_data_optional_1.xml

Optional element with no data

as <tag></tag>  

PR_no_data_optional_2.xml

Optional element with no data

as <tag/>

 

Invalid data type for element

Non-numeric data for an element specified as numeric in the XML Schema or non-date data in an element specified as date

 

Invalid data value for element

illogical data, such as 00 for gear code