logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XML::Validator::Schema::SimpleType - simple XML Schema types

Description

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

Name

       XML::Validator::Schema::SimpleType - simple XML Schema types

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);

perl v5.32.0                                       2021-01-05                            Schema::SimpleType(3pm)

See Also