problem with xml map format

6 views
Skip to first unread message

Robbe

unread,
Jan 30, 2010, 5:10:33 AM1/30/10
to Locify
I've attempted to create a map using the xml format indicated on the
site. When I try to initialize the offline map in Locify, I get an
error. The detail error message begins with...

Description
ef: PI must not start with xml (position:unknown
xm@1:7 in java.io.InputStreamReader@13271327)
Place FileMapConfig.parseLocifyDescriptor
Data

The next line is the beginning of my xml file. It appears to have a
leading character, that I cannot type with this keyboard. I've googled
the error message, and most search results point to leading white
space in the xml file. I've checked the xml file with multiple
editors, and I have not been able to find any trace of leading white
space. I've changed the encoding with Windows notepad to all available
encoding types. None of them worked. Most of them made things worse.
What might be the cause of this problem?

Jan Hudec

unread,
Jan 30, 2010, 6:31:49 AM1/30/10
to loc...@googlegroups.com

Byte-order mark, perhaps? Most editors have a habit of writing one when
saving text as unicode, both utf-8 and utf-16. You need an editor when you
can control this. I believe PSPad (http://www.pspad.com/) should be able to.

I believe the XML should be saved as utf-8, no byte-order mark, with
appropriate <?xml version='1.0' encoding='utf-8'?> processing instruction at
the begining.

--
Jan 'Bulb' Hudec <bu...@ucw.cz>

Robbe

unread,
Jan 30, 2010, 4:24:58 PM1/30/10
to Locify
Converting to UTF-8 and packing the files into a tar archive solved
that problem. Thank you for your help.
Reply all
Reply to author
Forward
0 new messages