XML::Schema::Type::List - list type for XML Schema datatypes
# an object to represent the base type my $float = XML::Schema::Type::float->new(); # create a list type of the base type my $list = XML::Schema::Type::List->new( itemType => $float ); # instantiate a validated list my $items = $list->instance('3.14 2.718'); # add constraints to list $list->constrain( maxLength => 4 ); # max 3 items $item = $list->instance('1.2 3.4 5.6'); # OK $item = $list->instance('1.2 3.4 5.6 7.8'); # not OK - 4 items $item = $list->instance('hello'); # not OK - not a float
This module implements the XML Schema list type.
Andy Wardley <abw@kfs.org>
This is version $Revision: 1.1.1.1 $ of the XML::Schema::Type::List, distributed with version 0.1 of the XML::Schema module set.
Copyright (C) 2001 Canon Research Centre Europe Ltd. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See also XML::Schema and XML::Schema::Type::Simple.
To install XML::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Schema
CPAN shell
perl -MCPAN -e shell install XML::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.