Unable to parse any XML input. Error on line 1: The markup in the document preceding the root element must be well-forme
Posted: Fri Oct 04, 2019 4:50 am
I am creating an XML in .net using XmlTextWriter to attach as a file in Dynamics.
When I try to test the file I get the error - Unable to parse any XML input. Error on line 1: The markup in the document preceding the root element must be well-formed.
If I open the file in notepad++ and copy and paste the contents into a new text file and save as a new XML file, the new XML file does not return the error.
Thanks.
When I try to test the file I get the error - Unable to parse any XML input. Error on line 1: The markup in the document preceding the root element must be well-formed.
If I open the file in notepad++ and copy and paste the contents into a new text file and save as a new XML file, the new XML file does not return the error.
Thanks.