complexType with Simple XML framework?

Unrendybync

New Member
how do i translate a complexType in an .xsd file to a SimpleXML annotated class structure. here's an example that's been translated to JAXB using xjc.exe. not sure what the equivalent annotation would be for the Simple framework.schema:\[code\]<xsd:element name="PaymentTxnID"> <xsd:complexType> <xsd:simpleContent> <xsd:extension base="IDTYPE"> <xsd:attribute name="useMacro" type="MACROTYPE"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType></xsd:element>\[/code\]JAXB generated:\[code\]public static class PaymentTxnID { @XmlValue protected String value; @XmlAttribute(name = "useMacro") protected String useMacro; public String getValue() { return value; } public void setValue(String value) { this.value = http://stackoverflow.com/questions/13730462/value; } public String getUseMacro() { return useMacro; } public void setUseMacro(String value) { this.useMacro = value; }}\[/code\]how can i represent complexTypes with Simple?
 
Back
Top