1XML::Element(3)       User Contributed Perl Documentation      XML::Element(3)
2
3
4

NAME

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

SYNOPSIS

9         [See HTML::Element]
10

METHODS AND ATTRIBUTES

12   delete_ignorable_whitespace
13       TODO: test and document this: with no tagname set, assumes ALL all-
14       whitespace nodes are ignorable!
15
16   endtag
17       Redirects to endtag_XML
18
19   starttag
20       Redirects to starttag_XML
21
22   as_XML
23         $s = $doc->as_XML()
24
25       Returns a string representing in XML the element and its descendants.
26
27   starttag_XML
28         $start = $doc->starttag_XML();
29
30       Returns a string representing the complete start tag for the element.
31       Except for CDATA.
32
33   endtag_XML
34         $end = $doc->endtag_XML();
35
36       Returns a string representing the complete end tag for this element.
37       I.e., "</", tag name, and ">". Except for CDATA.
38

DESCRIPTION

40       This is just a subclass of HTML::Element.  It works basically the same
41       as HTML::Element, except that tagnames and attribute names aren't
42       forced to lowercase, as they are in HTML::Element.
43
44       HTML::Element describes everything you can do with this class.
45

CAVEATS

47       Has currently no handling of namespaces.
48

SEE ALSO

50       XML::TreeBuilder for a class that actually builds XML::Element
51       structures.
52
53       HTML::Element for all documentation.
54
55       XML::DOM and XML::Twig for other XML document tree interfaces.
56
57       XML::Generator for more fun.
58
60       Copyright (c) 2000,2004 Sean M. Burke.  All rights reserved.  Copyright
61       (c) 2010,2011,2013 Jeff Fearn. All rights reserved.
62
63       This library is free software; you can redistribute it and/or modify it
64       under the same terms as Perl itself.
65
66       This program is distributed in the hope that it will be useful, but
67       without any warranty; without even the implied warranty of
68       merchantability or fitness for a particular purpose.
69

AUTHOR

71       Current Author:      Jeff Fearn <jfearn@cpan.org>.
72
73       Former Authors:      Sean M. Burke, <sburke@cpan.org>
74
75
76
77perl v5.34.0                      2021-07-23                   XML::Element(3)
Impressum