The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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');