
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.


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.