view Lib/DOM.pm @ 103:c289ed9662ca

Schema beta 2 More strict validation, support for inflating a simple nodes and properties
author wizard
date Fri, 07 May 2010 18:17:40 +0400
parents 16ada169ca75
children
line wrap: on
line source

package DOM;
require DOM::Site;
use Common;

my $GlobalSite;

sub Site {
    my $self = shift;
    
    $GlobalSite = construct DOM::Site if not $GlobalSite;
    return $GlobalSite;
}

sub Cleanup {
    $GlobalSite->Dispose if $GlobalSite;
    undef $GlobalSite;
}

1;