XML::Schema::Type::Simple - base class for simple XML Schema datatypes


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

Index


NAME

Top

XML::Schema::Type::Simple - base class for simple XML Schema datatypes

SYNOPSIS

Top

    package XML::Schema::Type::whatever;
    use base qw( XML::Schema::Type::Simple );
    use vars qw( @FACETS );

    @FACETS = (
	minLength  => 10,
	maxLength  => 30,
	otherFacet => { 
	    value  => $n, 
	    fixed  => 1, 
	    annotation => "a comment",
	}, 
    );

    package main;

    my $type = XML::Schema::Type::whatever->new()
        || die XML::Schema::Type::whatever->error();

    my $item = $type->instance('some instance value')
        || die $type->error();

    # NOTE: some issues still to resolve on the precise 
    # nature and structure of instances (currently hash ref).
    print $item->{ value };

DESCRIPTION

Top

The XML::Schema::Type::Simple module is a base class for objects that represent XML Schema simple types.

TODO

Top

AUTHOR

Top

Andy Wardley <abw@kfs.org>

VERSION

Top

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

COPYRIGHT

Top

SEE ALSO

Top

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


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