XML::DTD::Element - Perl module representing an element declaration in a DTD
use XML::DTD::Element; my $entman = XML::DTD::EntityManager->new; my $elt = XML::DTD::Element->new($entman, '<!ELEMENT a (#PCDATA)>');
XML::DTD::Element is a Perl module representing an element declaration in a DTD.
$entman = XML::DTD::EntityManager->new; $elt = new XML::DTD::Element($entman, '<!ELEMENT a (b?,c)>');
Constructs a new XML::DTD::Element object.
$xo = new XML::Output({'fh' => *STDOUT}); $elt->writexml($xo);
Write an XML representation of the element.
$eltname = $elt->name;
Return the name of the element.
print $elt->contentspec;
Return the content specification text.
$cm = $elt->contentmodel;
Return the parsed content specification as a content model object reference.
XML::DTD, XML::DTD::Component
Brendt Wohlberg <wohl@cpan.org>
Copyright (C) 2004-2006 by Brendt Wohlberg
This library is available under the terms of the GNU General Public License (GPL), described in the GPL file included in this distribution.
To install XML::DTD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::DTD
CPAN shell
perl -MCPAN -e shell install XML::DTD
For more information on module installation, please visit the detailed CPAN module installation guide.