=head1 NAME XML::Compile::Schema::Instance - Represents one schema =head1 INHERITANCE =head1 SYNOPSIS # Used internally by XML::Compile::Schema my $schema = XML::Compile::Schema::Instance->new($xml); =head1 DESCRIPTION This module collect information from one schema, and helps to process it. =head1 METHODS =head2 Constructors $obj-EB(TOP, OPTIONS) =over 4 Get's the top of an XML::LibXML tree, which must be a schema element. The tree is parsed: the information collected. Option --Default filename undef source undef . filename => FILENAME =over 4 When the source is some file, this is its name. =back . source => STRING =over 4 An indication where this information came from. =back =back =head2 Accessors $obj-EB =over 4 Returns a list of all defined attribute groups. =back $obj-EB =over 4 Returns a lost of all globally defined attribute names. =back $obj-EB =over 4 Returns a list with all complexType names. =back $obj-EB(URI) =over 4 Returns one global element definition. =back $obj-EB =over 4 Returns a list of all globally defined element names. =back $obj-EB =over 4 =back $obj-EB =over 4 Returns a list of all defined model groups. =back $obj-EB(STRING) =over 4 Returns one global element, selected by ID. =back $obj-EB =over 4 Returns a list of all found ids. =back $obj-EB(HASH) =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 =back $obj-EB =over 4 Returns a list with all simpleType names. =back $obj-EB =over 4 =back $obj-EB(ELEMENT) =over 4 The expanded ELEMENT name is used to collect a set of alternatives which are in this substitutionGroup (super-class like alternatives). =back $obj-EB =over 4 Returns a list of all named substitutionGroups. =back $obj-EB =over 4 =back $obj-EB(URI) =over 4 Returns the type definition with the specified name. =back $obj-EB =over 4 Returns a list of all simpleTypes and complexTypes =back =head2 Index $obj-EB(KIND, LOCALNAME) =over 4 Returns the definition for the object of KIND, with LOCALNAME. example: of find my $attr = $instance->find(attribute => 'myns#my_global_attr'); =back $obj-EB(NAMESPACE) =over 4 Returns a list of all schemaLocations specified with the import NAMESPACE (one of the values returned by L). =back $obj-EB =over 4 Returns a list with all namespaces which need to be imported. =back $obj-EB =over 4 Returns a list of all schemaLocations which where specified with include statements. =back $obj-EB([FILEHANDLE], OPTIONS) =over 4 Prints an overview over the defined objects within this schema to the selected FILEHANDLE. Option --Default kinds list_abstract . kinds => KIND|ARRAY-of-KIND =over 4 Which KIND of definitions would you like to see. Pick from C, C, C, C, C, and C. =back . list_abstract => BOOLEAN =over 4 Show abstract elements, or skip them (because they cannot be instantiated anyway). =back =back =head1 SEE ALSO This module is part of XML-Compile distribution version 0.94, built on August 26, 2008. Website: F All modules in this suite: L, L, L, L, L, L, L. Please post questions or ideas to the mailinglist at F For life contact with other developers, visit the C<#xml-compile> channel on C. =head1 LICENSE Copyrights 2006-2008 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 F