parses an XML Schema, allows access to it's data, other utility methods no validation... yet.
very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly, and just have a couple of trusty tutorials I refer to :)
Located in /core/nusoap/lib/class.xmlschema.php (line 17)
nusoap_base | --XMLSchema
constructor
adds a complex type to the schema
example: array
addType( 'ArrayOfstring', 'complexType', 'array', '', 'SOAP-ENC:Array', array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'), 'xsd:string' );
example: PHP associative array ( SOAP Struct )
addType( 'SOAPStruct', 'complexType', 'struct', 'all', array('myVar'=> array('name'=>'myVar','type'=>'string') );
adds an element to the schema
adds a simple type to the schema
get the PHP type of a user defined type in the schema
PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays returns false if no type exists, or not w/ the given namespace else returns a string that is either a native php type, or 'struct'
returns an associative array of information about a given type returns false if no type exists by the given name
For a complexType typeDef = array( 'restrictionBase' => '', 'phpType' => '', 'compositor' => '(sequence|all)', 'elements' => array(), // refs to elements array 'attrs' => array() // refs to attributes array ... and so on (see addComplexType) )
For simpleType or element, the array has different keys.
parse an XML file
serialize the schema
returns a sample serialization of a given type, or false if no type by the given name
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
Documentation generated on Tue, 4 Oct 2005 21:59:01 -0700 by phpDocumentor 1.3.0RC3