15
|
1 package IMPL::DOM::Document;
|
|
2 use strict;
|
|
3 use warnings;
|
|
4
|
|
5 use base qw(IMPL::DOM::Node);
|
|
6
|
|
7 __PACKAGE__->PassThroughArgs;
|
|
8
|
|
9 sub Create {
|
|
10 my ($this,$nodeName,$class,$refProps) = @_;
|
|
11
|
|
12 $refProps ||= {};
|
|
13
|
|
14 return $class->new(
|
|
15 nodeName => $nodeName,
|
|
16 %$refProps
|
|
17 );
|
|
18 }
|
|
19
|
|
20 1;
|
|
21 __END__
|
|
22
|
|
23 =pod
|
|
24
|
|
25 =head1 DESCRIPTION
|
|
26
|
18
|
27 =head1 METHODS
|
|
28
|
|
29 =over
|
|
30
|
|
31 =item C<<$doc->Create>>
|
|
32
|
15
|
33 Создает узел определеннго типа с определенным именем и свойствами.
|
|
34
|
18
|
35 =back
|
|
36
|
15
|
37 =cut |