NAME
XML::Compile::Schema::NameSpaces - Connect name-spaces from schemas
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 schema's.
METHODS
Constructors
$obj->new(OPTIONS)
Accessors
$obj->add(SCHEMA)
Adds the XML::Compile::Schema::Instance object to the internal knowledge of this object.
$obj->allSchemas
Returns a list of all known schema instances.
$obj->findElement(ADDRESS|(URI,NAME))
Lookup the definition for the specified element, which 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->findType(ADDRESS|(URI,NAME))
Lookup the definition for the specified type, which is constructed as {uri}name
or as seperate URI and NAME.
$obj->list
Returns the list of name-space names defined until now.
$obj->namespace(URI)
Returns a list of XML::Compile::Schema::Instance objects which have the URI as target namespace.
$obj->schemas(URI)
We need the name-space; when it is lacking then import must help, but that must be called explictly.
REFERENCES
See the XML::Compile website at http://perl.overmeer.net/xml-compile/ for more details.
COPYRIGHTS
Module version 0.09. Written by Mark Overmeer (mark@overmeer.net). See the ChangeLog for other contributors.
Copyright (c) 2006 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.