XML::Element(3pm)

XML::Element3pm

Xml elements with the same interface as html::element

Usage

  [See HTML::Element]

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.

Overview

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.

Caveats

Has currently no handling of namespaces.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11
  6. 12–13

Author

Current Author:
Jeff Fearn <[email protected]>.

Former Authors:
Sean M. Burke, <[email protected]>

From libxml-treebuilder-perl 5.4-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.