JAXB marshal to string works differently on different computers
问题 I have this test java app: @XmlRootElement public class Car { @XmlElement(namespace="http://www.example.com/CAR_NAME") private String name; @XmlElement(namespace="http://www.example.com/CAR_PRICE") private int price; @XmlElement(namespace="http://www.example.com/CAR_BUS") private Bus bus; //constructors, getters and setters @XmlRootElement public class Bus { @XmlElement(namespace="http://www.example.com/BUS_NAME") private String name; @XmlElement(namespace="http://www.example.com/BUS_PRICE")