Document is empty
There is no element in the document at all.
The message, as the validator reports it
Document is empty
Why it happens
- An empty file, or one with only whitespace, comments or an XML declaration.
- An export or download that failed and left a zero-byte file behind.
How to fix it
Check the file size and where the file came from. An XML document needs at least one element, its root.
Example
Reports the error
(an empty file)
Fixed
<note/>