XML::Validator::Schema::SimpleType.3pm

Langue: en

Autres versions - même langue

Version: 2008-01-29 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME
XML::Validator::Schema::SimpleType

DESCRIPTION

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

USAGE

   # create a new anonymous type based on an existing type
   my $type = $string->derive();
 
   # create a new named type based on an existing type
   my $type = $string->derive(name => 'myString');
 
   # add a restriction
   $type->restrict(enumeration => "10");
 
   # check a value against a type
   ($ok, $msg) = $type->check($value);
 
 

POD ERRORS

Hey! The above document had some coding errors, which are explained below:
Around line 6:
'=item' outside of any '=over'
Around line 10:
You forgot a '=back' before '=head1'