Java XML Parsing Standards -


Has anyone done any type of XML paragraph with elements that have dashes in names? I think this is not possible, any ideas?

  & lt; Person-feedback & gt; & Lt; First name & gt; 3119043033121014002 & lt; / First name & gt; & Lt; Last name & gt; 3119043033121014002 & lt; / Lastname & gt; & Lt; / Person-response & gt; If it is a search about Java mapping about XML, then JAXB can handle it:    

 @XmlRootElement (name = "person-response") public class PersonResponse {@XmlElement (name = "First-Name") string first name; @ XmlElement (name = "Last-Name") string lastName; }   

Comments