Add XML::Compile::Schema::Instance objects to the internal knowledge of this object.
Returns a list of all known schema instances.
Returns true when $exttype extends $basetype.
Lookup the definition for the specified $kind of definition: the name
of a global element, global attribute, attributeGroup or model group.
The $address is constructed as {uri}name
or as separate $uri and $name.
Option | Default |
---|---|
include_used | <true> |
Lookup the definition for the specified id, which is constructed as
uri#id
or as separate $uri and $id.
Lookup the substitutionGroup alternatives for a specific element, which
is an $type (element full name) of form {uri}name
or as separate
URI and NAME. Returned is an ARRAY of HASHes, each describing one type
(as returned by find())
This method can be quite expensive, with large and nested schemas.
[1.41] Returns a HASH with namespaces which are declared in all currently known schema's, pointing to ARRAYs of the locations where the import should come from.
In reality, the locations mentioned are often wrong. But when you think you want to load all schema's dynamically at start-up (no, you do not want it but it is a SOAP paradigma) then you get that info easily with this method.
Returns the list of name-space URIs defined.
Returns a list of XML::Compile::Schema::Instance objects which have the $uri as target namespace.
Show all definitions from all namespaces, for debugging purposes, by default the selected. Additional %options are passed to XML::Compile::Schema::Instance::printIndex().
Option | Default |
---|---|
include_used | <true> |
namespace | <ALL> |
my $nss = $schema->namespaces; $nss->printIndex(\*MYFILE); $nss->printIndex(namespace => "my namespace"); # types defined in the wsdl schema use XML::Compile::SOAP::Util qw/WSDL11/; $nss->printIndex(\*STDERR, namespace => WSDL11);
We need the name-space; when it is lacking then import must help, but that must be called explicitly.
Use any other XML::Compile::Schema extension as fallback, if the find() does not succeed for the current object. Searches for definitions do not recurse into the used object.
Returns the list of all used OBJECTS. This method implements XML::Compile::Schema::useSchema().