++ed by:
1 non-PAUSE user
Author image Brendt Wohlberg

NAME

XML::DTD::Component - Perl module representing a component of an XML DTD

DESCRIPTION

  XML::DTD::Component is a Perl module representing a component of an
  XML DTD. It is intended to be a base class for derived classes, and
  should not itself be instantiated. The following methods are
  provided.
new
 $obj = new XML::DTD::Component;
isa
 if (XML::DTD::Component->isa($obj) {
 ...
 }

Test object type

define
 $obj->define('component type', 'component text', 'left delimiter',
              'right delimiter');

Set the component description

unparsed
 $txt = $obj->unparsed;

 Get the unparsed component text
fwrite
 open(FH,'>file.xml');
 $obj->fwrite(*FH);

Write the unparsed component text to the specified file handle

swrite
 $obj->swrite;

Return the unparsed component text as a string

writexml
 open(FH,'>file.xml');
 my $xo = new XML::Output({'fh' => *FH});
 $obj->writexml($xo);

Write an XML representation.

xmlattrib
 $obj->xmlattrib;

Return a hash of attributes for XML representation

writexmlelts
 open(FH,'>file.xml');
 my $xo = new XML::Output({'fh' => *FH});
 $obj->writexmlelts($xo);

Write a component-specific part of the XML representation

SEE ALSO

XML::DTD

AUTHOR

Brendt Wohlberg <wohl@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2004-2010 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.