---
name: "XML::Validator::Schema::TypeLibrary"
section: "3pm"
platform: "linux"
package: "libxml-validator-schema-perl"
version: "1.10-2.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XML::Validator::Schema::TypeLibrary"
---

# XML::Validator::Schema::TypeLibrary(3pm)

internal module

## NAME

XML::Validator::Schema::TypeLibrary - internal module

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