XSD
A structural check before the rule layers – the file must first be readable as a valid XML document.
What this error means
XSD
The XML structure does not match the UBL 2.1 schema: an element is missing, misspelled, or in the wrong place. In UBL the order of elements matters.
How to fix it
The technical message names the element and line. Fix that element; check spelling and position.