Has anyone ever done any type of XML paring with elements that have dashes in the names? I don’t think its possible, any ideas?
<Person-Response>
<First-Name> 3119043033121014002</First-Name>
<Last-Name> 3119043033121014002</Last-Name>
</Person-Response>
If this is a questin regarding XML to java mapping then JAXB can handle it:
@XmlRootElement(name = "Person-Response") public class PersonResponse { @XmlElement(name = "First-Name") String firstName; @XmlElement(name = "Last-Name") String lastName; }