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:
<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>
JAXB generated:
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 = value;
}
public String getUseMacro() {
return useMacro;
}
public void setUseMacro(String value) {
this.useMacro = value;
}
}
how can i represent complexTypes with Simple?