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::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',
              type => $type_obj);

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