Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages

Manual Reference Pages  -  XML::COMPILE::SCHEMA::INSTANCE (3)

.ds Aq ’


XML::Compile::Schema::Instance - Represents one schema



 # Used internally by XML::Compile::Schema
 my $schema = XML::Compile::Schema::Instance->new($xml);


This module collect information from one schema, and helps to process it.



$obj-><B>newB>($top, %options) Get’s the top of an XML::LibXML tree, which must be a schema element. The tree is parsed: the information collected.

 -Option                --Default
  attribute_form_default  <undef>
  element_form_default    <undef>
  filename                undef
  source                  undef
  target_namespace        <undef>

attribute_form_default => ’qualified’|’unqualified’
element_form_default => ’qualified’|’unqualified’ Overrule the default as found in the schema. Many old schemas (like WSDL11 and SOAP11) do not specify the default in the schema but only in the text.
filename => FILENAME When the source is some file, this is its name.
source => STRING An indication where this information came from.
target_namespace => NAMESPACE Overrule or set the target namespace.


$obj-><B>attributeGroupsB>() Returns a list of all defined attribute groups.
$obj-><B>attributesB>() Returns a lost of all globally defined attribute names.
$obj-><B>complexTypesB>() Returns a list with all complexType names.
$obj-><B>elementB>($uri) Returns one global element definition.
$obj-><B>elementsB>() Returns a list of all globally defined element names.
$obj-><B>groupsB>() Returns a list of all defined model groups.
$obj-><B>sgsB>() Returns a HASH with the base-type as key and an ARRAY of types which extend it.
$obj-><B>simpleTypesB>() Returns a list with all simpleType names.
$obj-><B>tnsesB>() A schema can defined more than one target namespace, where recent schema spec changes provide a targetNamespace attribute.
$obj-><B>typeB>($uri) Returns the type definition with the specified name.
$obj-><B>typesB>() Returns a list of all simpleTypes and complexTypes


$obj-><B>findB>($kind, $fullname) Returns the definition for the object of $kind, with $fullname.

example: of find

  my $attr = $instance->find(attribute => {myns}my_global_attr);

$obj-><B>importLocationsB>($ns) Returns a list of all schemaLocations specified with the import $ns (one of the values returned by imports()).
$obj-><B>importsB>() Returns a list with all namespaces which need to be imported.
$obj-><B>includeLocationsB>() Returns a list of all schemaLocations which where specified with include statements.
$obj-><B>printIndexB>( [$fh], %options ) Prints an overview over the defined objects within this schema to the selected $fh.

 -Option       --Default
  kinds          <all>
  list_abstract  <true>

kinds => KIND|ARRAY-of-KIND Which KIND of definitions would you like to see. Pick from element, attribute, simpleType, complexType, attributeGroup, and group.
list_abstract => BOOLEAN Show abstract elements, or skip them (because they cannot be instantiated anyway).


This module is part of XML-Compile distribution version 1.52, built on January 15, 2016. Website:

Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::WSDL11, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::C14N, XML::Compile::WSS, XML::Compile::WSS::Signature, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite and XML::LibXML::Simple.

Please post questions or ideas to the mailinglist at . For live contact with other developers, visit the #xml-compile channel on


Copyrights 2006-2016 by [Mark Overmeer]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See

Search for    or go to Top of page |  Section 3 |  Main Index

perl v5.20.3 XML::COMPILE::SCHEMA::INSTANCE (3) 2016-01-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.