i got the following XSD:
<xsd:complexType name="typeADDRESS">
<xsd:sequence>
<xsd:element ref="NAME" minOccurs="0" maxOccurs="unbounded"/>
<!-- # ... just to show that these aren't the only ones -->
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element ref="EMAIL"/>
<xsd:element ref="PUBLIC_KEY" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<!-- # ... and also some attributes later -->
</xsd:sequence>
</xsd:complexType>
if the XML Data for the email elements looks something like this:
<EMAIL>A</EMAIL>
<PUBLIC_KEY>A1</PUBLIC_KEY>
<PUBLIC_KEY>A2</PUBLIC_KEY>
<EMAIL>B</EMAIL>
<PUBLIC_KEY>B1</PUBLIC_KEY>
<PUBLIC_KEY>B2</PUBLIC_KEY>
how to i put this into a PHP structure that makes sense? and when normalizing back, how do i keep the order?
do i need to use NormalizableInterface, DenormalizableInterface? And what's with the other attributes, do i need to manually (de)normalize them too then?