view Lib/IMPL/DOM/Document.pm @ 20:267460284fb3

DOM Schema
author Sergey
date Tue, 22 Sep 2009 17:17:38 +0400
parents 818c74b038ae
children 7f00786f8210
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

=head1 METHODS

=over

=item C<<$doc->Create>>

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

=back

=cut