view Lib/IMPL/DOM/Document.pm @ 15:16795016e70b

Dom schema in progress
author Sergey
date Mon, 07 Sep 2009 17:30:55 +0400
parents
children 818c74b038ae
line wrap: on
line source

package IMPL::DOM::Document;
use strict;
use warnings;

use base qw(IMPL::DOM::Node);

__PACKAGE__->PassThroughArgs;

sub Create {
    my ($this,$nodeName,$class,$refProps) = @_;
    
    $refProps ||= {};
    
    return $class->new(
        nodeName => $nodeName,
        %$refProps
    );
}

1;
__END__

=pod

=head1 DESCRIPTION

Создает узел определеннго типа с определенным именем и свойствами.

=cut