Dear ODK Community,
I have the following error validating the attached XML form:
XML Syntax Error at Line: 1, Column: 5!
org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown xm@1:5 in java.io.InputStreamReader@1f9c67e)
This is what I did: I wrote the form in Excel, converted it to XML via XLSForm (I even previewed it in Enketo) but when I tried to validate it with ODK Validate 1.4.5 I got the error.
when using UTF-8, some editors insert a BOM character at the start of the
file.
That is what is causing this (very badly identified) error. There is a BOM
character as the first character to the file.
Not sure how it got inserted, as the XLSForm converter does not insert this
character itself.
If you use Notepad++, you can open the file for editing, then change the
encoding via
Encoding / Encode in UTF-8 without BOM
And save the file.
It will then work.
···
On Mon, Mar 30, 2015 at 10:21 AM, wrote:
Dear ODK Community,
I have the following error validating the attached XML form:
XML Syntax Error at Line: 1, Column: 5!
org.xmlpull.v1.XmlPullParserException: PI must not start with xml
(position:unknown xm@1:5 in java.io.InputStreamReader@1f9c67e)
This is what I did: I wrote the form in Excel, converted it to XML via
XLSForm (I even previewed it in Enketo) but when I tried to validate it
with ODK Validate 1.4.5 I got the error.
when using UTF-8, some editors insert a BOM character at the start of the file.
That is what is causing this (very badly identified) error. There is a BOM character as the first character to the file.
Not sure how it got inserted, as the XLSForm converter does not insert this character itself.
If you use Notepad++, you can open the file for editing, then change the encoding via
Encoding / Encode in UTF-8 without BOM
And save the file.
It will then work.
Dear ODK Community,
I have the following error validating the attached XML form:
XML Syntax Error at Line: 1, Column: 5!
org.xmlpull.v1.XmlPullParserException: PI must not start with xml (position:unknown xm@1:5 in java.io.InputStreamReader@1f9c67e)
This is what I did: I wrote the form in Excel, converted it to XML via XLSForm (I even previewed it in Enketo) but when I tried to validate it with ODK Validate 1.4.5 I got the error.