Is there a JavaScript API for XML binding - analog to JAXB for Java?
问题 In Java, we work a lot with JAXB2. Object<->XML mappings are defined as annotations in Java classes: @XmlRootElement(name="usertask", namespace="urn:test") public class UserTask { @XmlElement(namespace="urn:test") public String getAssignee() { ... } public void setAssignee(String assignee) { ... } } JAXB runtime can read these annotations and create unmarshaller to parse XML into an object instance or marshall an object into XML. JAXB ships a schema compiler (XJC) which can generate annotated