Commits

Anonymous committed 6d7316a

Modified Files:
lib/XML/LibXML/SAX/Parser.pm
[fix] naming fixes

Comments (0)

Files changed (1)

lib/XML/LibXML/SAX/Parser.pm

     my $self = shift;
     my ($node) = @_;
 
-    if ( $node->getType() == XML_DOCUMENT_NODE
-         || $node_type == XML_HTML_DOCUMENT_NODE ) {
+    if ( $node->nodeType() == XML_DOCUMENT_NODE
+         || $node->nodeType == XML_HTML_DOCUMENT_NODE ) {
         $self->start_document({});
         $self->xml_decl({Version => $node->getVersion, Encoding => $node->getEncoding});
         $self->process_node($node);
 sub process_node {
     my ($self, $node) = @_;
 
-    my $node_type = $node->getType();
+    my $node_type = $node->nodeType();
     if ($node_type == XML_COMMENT_NODE) {
         $self->comment( { Data => $node->getData } );
     }