Sam Tregar > XML-Validator-Schema-1.05 > XML::Validator::Schema::TypeLibrary

Download:
XML-Validator-Schema-1.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  4
View Bugs
Report a bug
Source   Latest Release: XML-Validator-Schema-1.06

NAME ^

XML::Validator::Schema::TypeLibrary

DESCRIPTION ^

Internal module used to implement a library of types, simple and complex.

USAGE ^

  # get a new type library, containing just the builtin types
  $library = XML::Validator::Schema::TypeLibrary->new();

  # add a new type
  $library->add(name => 'myString',
                ns   => 'http://my/ns',
                obj  => $type_obj);

  # lookup a type
  my $type = $library->find(name => 'myString',
                            ns   => 'http://my/ns');