Commits

Anonymous committed a8cbad7

Modified Files:
LibXML.xs LibXML.pm
+ added serialize alias for a number of toString() functions.
This could be helpsome for libxml2 examples in the future(?)

Comments (0)

Files changed (2)

     return $self->_toStringC14N( $comments, $xpath );
 }
 
+sub serialize_c14n {
+    my $self = shift;
+    return $self->toStringC14N( @_ );
+}
+
 1;
 
 #-------------------------------------------------------------------------#
     return $retval;
 }
 
+sub serialize {
+    my $self = shift;
+    return $self->toString( @_ );
+}
+
 #-------------------------------------------------------------------------#
 # bad style xinclude processing                                           #
 #-------------------------------------------------------------------------#
     return $retval;
 }
 
+
+sub serialize {
+    my $self = shift;
+    return $self->toString(@_);
+}
+
 1;
 
 #-------------------------------------------------------------------------#
 SV *
 toStringHTML(self)
         xmlDocPtr self
+    ALIAS:
+       XML::LibXML::Document::serialize_html = 1 
     PREINIT:
         xmlChar *result=NULL;
         STRLEN len = 0;
         xmlNodePtr self
         SV * useDomEncoding
         int format
+    ALIAS:
+        XML::LibXML::Node::serialize = 1
     PREINIT:
         xmlBufferPtr buffer;
         const xmlChar *ret = NULL;