logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XML::Element - XML elements with the same interface as HTML::Element

Author

       Current Author:      Jeff Fearn <jfearn@cpan.org>.

       Former Authors:      Sean M. Burke, <sburke@cpan.org>

perl v5.34.0                                       2022-06-28                                  XML::Element(3pm)

Caveats

       Has currently no handling of namespaces.

Description

       This is just a subclass of HTML::Element.  It works basically the same as HTML::Element, except that
       tagnames and attribute names aren't forced to lowercase, as they are in HTML::Element.

       HTML::Element describes everything you can do with this class.

Methods And Attributes

delete_ignorable_whitespace
       TODO: test and document this: with no tagname set, assumes ALL all-whitespace nodes are ignorable!

   endtag
       Redirects to endtag_XML

   starttag
       Redirects to starttag_XML

   as_XML
         $s = $doc->as_XML()

       Returns a string representing in XML the element and its descendants.

   starttag_XML
         $start = $doc->starttag_XML();

       Returns a string representing the complete start tag for the element.  Except for CDATA.

   endtag_XML
         $end = $doc->endtag_XML();

       Returns a string representing the complete end tag for this element.  I.e., "</", tag name, and ">".
       Except for CDATA.

Name

       XML::Element - XML elements with the same interface as HTML::Element

See Also

       XML::TreeBuilder for a class that actually builds XML::Element structures.

       HTML::Element for all documentation.

       XML::DOM and XML::Twig for other XML document tree interfaces.

       XML::Generator for more fun.

Synopsis

         [See HTML::Element]

See Also