1Schema::SimpleType(3) User Contributed Perl DocumentationSchema::SimpleType(3)
2
3
4
5NAME
6XML::Validator::Schema::SimpleType
7

DESCRIPTION

9       XML Schema simple type system.  This module provides objects and class
10       methods to support simple types.  For complex types see the ModelNode
11       class.
12

USAGE

14         # create a new anonymous type based on an existing type
15         my $type = $string->derive();
16
17         # create a new named type based on an existing type
18         my $type = $string->derive(name => 'myString');
19
20         # add a restriction
21         $type->restrict(enumeration => "10");
22
23         # check a value against a type
24         ($ok, $msg) = $type->check($value);
25
26
27
28perl v5.8.8                       2004-11-04             Schema::SimpleType(3)
Impressum