1Schema::TypeLibrary(3)User Contributed Perl DocumentationSchema::TypeLibrary(3)
2
3
4

NAME

6       XML::Validator::Schema::TypeLibrary
7

DESCRIPTION

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

USAGE

13         # get a new type library, containing just the builtin types
14         $library = XML::Validator::Schema::TypeLibrary->new();
15
16         # add a new type
17         $library->add(name => 'myString',
18                       ns   => 'http://my/ns',
19                       obj  => $type_obj);
20
21         # lookup a type
22         my $type = $library->find(name => 'myString',
23                                   ns   => 'http://my/ns');
24
25
26
27perl v5.30.0                      2019-07-26            Schema::TypeLibrary(3)
Impressum