A small lib that can read XML schema definitions (XSD), take the PHP data (mostly an array) you pass it, and spit out XML representing the data according to the schema.
This lib is not at all complete. It won't necessarily ever become complete either. This is written as an experiment, to be used with Library-Distribution/ALD-API, to ease output of valid XML from the API. As soon as that works, further work on this lib is to be delayed.
Feel free to fork and contribute if interested in seeing this develop further, pull requests are welcome!
The class structure is:
XmlSchemaObject
*XmlSchemaAnnotation
XmlSchemaType
XmlSchemaComplexType
XmlSchemaSimpleType
XmlSchemaBuiltinSimpleType
XmlSchemaCustomSimpleType
XmlSchemaParticle
XmlSchemaCompositor
XmlSchemaSequence
XmlSchemaChoice
XmlSchemaAll
XmlSchemaNode
XmlSchemaElement
XmlSchemaAttribute
XmlSchema
*XmlSchemaGroup
*XmlSchemaAny
(* not yet existing)