Error validating form with ODK Validate 1.4.5

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.

Any help would be appreciated,

Victor

HojapedidoT3.xml (10.9 KB)

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.

Any help would be appreciated,

Victor

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

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.

Any help would be appreciated,

Victor

--

--

Post: opend...@googlegroups.com

Unsubscribe: opendatakit...@googlegroups.com

Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.

To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

Thank you very much, I change the encoding as you suggested it and it worked.

··· On Tuesday, March 31, 2015 at 11:04:53 AM UTC-6, Mitch Sundt wrote: > On Mon, Mar 30, 2015 at 10:21 AM, wrote: