DOM/YYLex.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
_xml_getDocumentElement
2.0
_xml_isTextNode
2.0
_xml_isElementNode
2.0
CRAP 2.0
1 #!/usr/local/bin/perl -w
2 ##
3 ## YYLex.pm
4 ##
5 ## Daniel Bößwetter, Mon Nov 18 11:42:40 CET 2002
6 ## boesswetter@peppermind.de
7 ##
8 ## $Log: YYLex.pm,v $
9 ## Revision 1.2 2003/01/11 00:50:19 daniel
10 ## Oops, forgor versions numbers for CPAN compatibility and added homepage url
11 ## in several places (all PODs and README)
12 ##
13 ## Revision 1.1.1.1 2002/11/24 17:18:15 daniel
14 ## initial checkin
15 ##
16 ##
17  
18 package XML::DOM::YYLex;
19 our $VERSION = '0.01';
20 use strict;
21 use XML::YYLex;
22 use vars qw(@ISA);
23 @ISA = qw(XML::YYLex);
24 use XML::DOM;
25  
26 sub _xml_getDocumentElement {
27 my $self = shift;
28 return shift->getDocumentElement
29 }
30  
31 sub _xml_isTextNode {
32 my $self = shift;
33 my $node = shift;
34 return $node->getNodeType == TEXT_NODE;
35 }
36  
37 sub _xml_isElementNode {
38 my $self = shift;
39 my $node = shift;
40 return $node->getNodeType == ELEMENT_NODE;
41 }
42  
43 sub _xml_isDocumentNode {
44 my $self = shift;
45 my $node = shift;
46 return $node->getNodeType == DOCUMENT_NODE;
47 }
48  
49 1;
50  
51 =pod
52  
53 =head1 NAME
54  
55 XML::DOM::YYLex - XML::DOM-specific part of C<XML::YYLex>
56  
57 =head1 SYNOPSIS
58  
59 use XML::YYLex;
60 my $parser = XML::YYLex::create_object( $xml_dom_reference );
61  
62 =head1 DESCRIPTION
63  
64 This module implements the parts of C<XML::YYLex> that are specific to
65 the XML::DOM module. Rather than interacting with this module directly
66 you create instances of it through the factory method C<create_object>
67 defined in C<XML::YYLex>.
68  
69 Please read the C<XML::YYLex> manpage for further info.
70  
71 =head1 SEE ALSO
72  
73 L<XML::YYLex>, L<XML::Sablotron::YYLex>, L<XML::DOM>
74  
75 The XML-YYLex homepage: http://home.debitel.net/user/boesswetter/xml_yylex/
76  
77 =cut