| XML-DTD documentation | view source | Contained in the XML-DTD distribution. |
XML::DTD::Component - Perl module representing a component of an XML DTD
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.
$obj = new XML::DTD::Component;
if (XML::DTD::Component->isa($obj) {
...
}
Test object type
$obj->define('component type', 'component text', 'left delimiter',
'right delimiter');
Set the component description
$txt = $obj->unparsed; Get the unparsed component text
open(FH,'>file.xml'); $obj->fwrite(*FH);
Write the unparsed component text to the specified file handle
$obj->swrite;
Return the unparsed component text as a string
open(FH,'>file.xml');
my $xo = new XML::Output({'fh' => *FH});
$obj->writexml($xo);
Write an XML representation.
$obj->xmlattrib;
Return a hash of attributes for XML representation
open(FH,'>file.xml');
my $xo = new XML::Output({'fh' => *FH});
$obj->writexmlelts($xo);
Write a component-specific part of the XML representation
Brendt Wohlberg <wohl@cpan.org>
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.
| XML-DTD documentation | view source | Contained in the XML-DTD distribution. |