> Are you writing your xml by hand, as in no xml writer? That can cause
> problems. In your exception it says "latitude 59&", the & should have
> converted to '&'(I think). If you can use Java6, there is a
> XMLStreamWriter in java.xml.stream that does automatic special
character
> escaping. This can simplify writing simple xml.
>

If you are not using Java 6, you can use Apache Commons Lang
StringEscapeUtils (org.apache.commons.lang.StringEscapeUtils) to escape
the XML. I use this for our XML with JDK 5.

-Rick
 

Reply via email to