METHODS

Constructors

$obj->new( $translator, %options )

The %options are described in XML::Compile::Schema::compile(). Those descriptions will probably move here, eventually.

Option Default

nss

<required>

nss => XML::Compile::Schema::NameSpaces
$obj->register( $name )
$class->register( $name )

Register a new back-end.

» Example:
 use XML::Compile::Translate::SomeBackend;
 XML::Compile::Translate::SomeBackend->register('SomeNAME');
 my $coderef = $schemas->compile('SomeNAME' => ...);

Attributes

Handlers

$class->compile( $element|$attribute|$type, %options )

Do not call this function yourself, but use XML::Compile::Schema::compile() (or wrappers around that).

This function returns a CODE reference, which can translate between Perl datastructures and XML, based on a schema. Before this method is called is the schema already translated into a table of types.