A parser may flag the spot where it got confused, which can be after the actual mistake. Inspect the reported line and the opening tag just above it.
Confirm the response is XML
Open the feed URL as a visitor. If the file contains an HTML error or login page, fix access or the source URL first.
Check delimiters and namespaces
Look for mismatched closing tags, undeclared prefixes, and raw ampersands. Generate XML using a serializer so product text is escaped correctly.
Validate the complete file again
Check the full XML after fixing the first failure. Then check the item fields separately and reprocess the source in Merchant Center.
Worked example
A link with ?color=red&size=m is valid as raw XML text. A raw ampersand between the two query parameters can break the parser.
Check your file with the free Google Merchant Center XML validator.