Skip to content

a small lib for transforming data to XML using XML schemas; written in PHP; not at all complete

Notifications You must be signed in to change notification settings

Library-Distribution/XmlSchema.php

Repository files navigation

XmlSchema.php

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.

Contribute

Feel free to fork and contribute if interested in seeing this develop further, pull requests are welcome!

Classes

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)

About

a small lib for transforming data to XML using XML schemas; written in PHP; not at all complete

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published