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->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->findType(ADDRESS|(URI,NAME))
Lookup the definition for the specified type, which is constructed as {uri}name
or as seperate URI and NAME.
$obj->namespace(URI)
Returns a list of XML::Compile::Schema::Instance objects which have the URI as target namespace.
$obj->namespaces
Returns the list of names defined until now.
$obj->schemas(URI)
We need the name-space; when it is lacking then import must help.
REFERENCES
See the XML::Compile website at http://perl.overmeer.net/xml-compile/ for more details.
COPYRIGHTS
Module version 0.05. 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.