XML::DTD::AttDef - Perl module representing the AttDef part of an ATTLIST declaration in an XML DTD.
use XML::DTD::AttDef; my $entman = XML::DTD::EntityManager->new; my $atd = XML::DTD::AttDef::new($entman,$name,$atttype,$defaultdecl);
XML::DTD::AttDef is a Perl module representing the AttDef part of an ATTLIST declaration in an XML DTD. The following methods are provided.
$atd = new XML::DTD::AttDef($name,$atttype,$defaultdecl);
Construct a new XML::DTD::AttDef object.
if (XML::DTD::AttDef->isa($atd)) { ... }
Test object type
open(FH,'>file.xml'); my $xo = new XML::Output({'fh' => *FH}); $atd->writexmlelts($xo);
Write a component-specific part of the XML representation.
my $attname = $atd->name;
Return the attribute name.
my $atttype = $atd->type;
Return the attribute type.
my $atdflt = $atd->default;
Return the attribute default value.
XML::DTD, XML::DTD::AttList
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.
Peter Lamb <Peter.Lamb@csiro.au> improved entity substitution.
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.