Below is a JOSM preset I'm developing that generates an error. I'm new to XML and cannot see the error and wonder if anyone else can. JOSM reports the following error when I try to add the code as a Custom Preset in JOSM v. 7182. Error is [1:1] (note: I replaced all "<" with "{" and all ">" with "}" so the code below will display properly) {presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"} Thanks very much... asked 03 Jun '14, 22:01 AlaskaDave |
The problem is that you have check key="name" text="Name Here " default=" " delete_if_empty="true" you probably meant to have key here. Check is a checkbox. That cannot have an empty default. replace check with key and it work (at least for me) answered 04 Jun '14, 16:48 escada You are quite right escada. I changed that line to
(04 Jun '14, 17:44)
AlaskaDave
1
Sorry, my bad, it has to be "text key="name" text="Name Here " default=" " delete_if_empty="true"
(04 Jun '14, 20:36)
escada
1
No, that's not it either. Still the same error. Wouldn't it be nice if such error messages would be more explanatory. The days of computers with limited space for text storage are long gone. Y2K is 14 years behind us!
(04 Jun '14, 23:26)
AlaskaDave
3
Is there any character before the first "<" ? A white space, a blank line ? "Content not allowed in prolog" means there is content, aka characters before the first accepted character, which has to be a "< I'm stil struggling to get the content of the file that is working back to you. Is this dropbox link working for you https://db.tt/Ub8ziKFr
(05 Jun '14, 04:21)
escada
2
Finally! Got it. Yes, there was some spurious data in front of the leading "<". Where it came from is beyond me. I only found it by comparing your XML file and mine with ExamDiff, an old friend of mine. Thanks so much for your help escada.
(05 Jun '14, 06:47)
AlaskaDave
you're welcome. Glad I could help
(05 Jun '14, 08:03)
escada
showing 5 of 6
show 1 more comments
|
Note enclosing code in back ticks will stop it from being interpreted as HTML.