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