goetas / xsd2php

Convert XSD into PHP classes and serialize into XML (deserialize too)
149 stars 62 forks source link

Keeping the order of a mixed sequence #127

Closed tstumm closed 5 years ago

tstumm commented 5 years ago

Hi,

I'm currently working on a project where a complex type may contain a sequence of mixed types, i.e.

<choice maxOccurs="unbounded">
    <element name="label" type="ns:labelType"/>
    <element name="text" type="ns:textType"/>
    <element name="select" type="ns:selectType"/>
    <element name="checkbox" type="ns:checkboxType"/>
 </choice>

The generated classes nicely group them into different attributes BUT I really need to keep track of the actual order of those in the XML I'm parsing. Is there any way to do this using xsd2php?

tstumm commented 5 years ago

Oops, used the wrong repository to file this.

goetas commented 5 years ago

The issue should be moved to https://github.com/goetas-webservices/xsd-reader

tstumm commented 5 years ago

See https://github.com/goetas-webservices/xsd-reader/issues/41