Sam Tregar > XML-Validator-Schema-1.07 > XML::Validator::Schema::SimpleType

Download:
XML-Validator-Schema-1.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  4
View Bugs
Report a bug
Source   Latest Release: XML-Validator-Schema-1.10
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);