XML::Schema::Type::Union - union type for XML Schema datatypes


XML-Schema documentation  | view source Contained in the XML-Schema distribution.

Index


NAME

Top

XML::Schema::Type::Union - union type for XML Schema datatypes

SYNOPSIS

Top

    # declare some simple types
    my $int   = XML::Schema::Type::int->new();
    my $time  = XML::Schema::Type::time->new();
    my $float = XML::Schema::Type::float->new();

    # declare a union
    my $union = XML::Schema::Type::Union->new(
	memberTypes => [ $int, $time, $float ],
    );

    # instantiate a validated member of the union
    my $i = $union->instance('14');	    # ok - int
    my $t = $union->instance('11:23:36');   # ok - time
    my $f = $union->instance('1.23');	    # ok - float

DESCRIPTION

Top

This module implements the XML Schema union type.

AUTHOR

Top

Andy Wardley <abw@kfs.org>

VERSION

Top

This is version $Revision: 1.1.1.1 $ of the XML::Schema::Type::Union, distributed with version 0.1 of the XML::Schema module set.

COPYRIGHT

Top

SEE ALSO

Top

See also XML::Schema and XML::Schema::Type::Simple.


XML-Schema documentation  | view source Contained in the XML-Schema distribution.