The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::Compile::Schema::NameSpaces - Connect name-spaces from schemas

INHERITANCE

SYNOPSIS

 # Used internally by XML::Compile::Schema
 my $nss = XML::Compile::Schema::NameSpaces->new;
 $nss->add($schema);

DESCRIPTION

This module keeps overview on a set of schemas.

METHODS

Constructors

$obj->new(OPTIONS)

Accessors

$obj->add(SCHEMA)

$obj->allSchemas

    Returns a list of all known schema instances.

$obj->find(KIND, ADDRESS|(URI,NAME))

    Lookup the definition for the specified KIND of definition: the name of a gloabl element, gloabl attribute, attributeGroup or model group. The ADDRESS is constructed as {uri}name or as seperate URI and NAME.

$obj->findID(ADDRESS|(URI,ID))

    Lookup the definition for the specified id, which is constructed as uri#id or as seperate URI and ID.

$obj->findSgMembers(ADDRESS|(URI,NAME))

    Lookup the substitutionGroup alternatives for a specific element, which is an ADDRESS of form {uri}name or as seperate URI and NAME. Returned is a list of parse nodes (HASHes)

$obj->list

    Returns the list of name-space names defined until now.

$obj->namespace(URI)

$obj->schemas(URI)

    We need the name-space; when it is lacking then import must help, but that must be called explictly.

SEE ALSO

This module is part of XML-Compile distribution version 0.51, built on August 10, 2007. Website: http://perl.overmeer.net/xml-compile/

LICENSE

Copyrights 2006-2007 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 http://www.perl.com/perl/misc/Artistic.html