METHODS

$class->compileTree( 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.

Option Default

action

<required>

bricks

<required>

hooks

<required>

nss

<required>

typemap

{}

action => 'READER'|'WRITER'
bricks => CLASS
hooks => ARRAY
nss => XML::Compile::Schema::NameSpaces
typemap => HASH