All xml batch input files must be well formed and valid.
To be well formed:
• The file must begin with the XML declaration.
• The document must have a root element.
• All elements (tags) must have a closing tag.
• Tags are case-sensitive.
• The elements must be properly nested.
• Attribute values must be quoted.
To be valid, an XML document must conform to the rules of a DTD or schema that defines the structure of the document (for example, the order of tags, the number of tags allowed of a certain type, the type of tag content accepted, etc.).
More: