| 1 | package Data::Stag::DTDWriter; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Data::Stag::DTDWriter - DTD Writer | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | my $p = Data::Stag->parser; | ||
| 10 | $p->handler('dtd'); | ||
| 11 | $p->parse($file); | ||
| 12 | |||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | |||
| 19 | =head1 PUBLIC METHODS - | ||
| 20 | |||
| 21 | =cut | ||
| 22 | |||
| 23 | use strict; | ||
| 24 | use base qw(Data::Stag::Writer); | ||
| 25 | |||
| 26 | use vars qw($VERSION); | ||
| 27 | $VERSION="0.14"; | ||
| 28 | |||
| 29 | sub end_stag { | ||
| 30 | my $self = shift; | ||
| 31 | my $stag = shift; | ||
| 32 | my $dtd = $stag->autoschema->dtd; | ||
| 33 | $self->addtext($dtd); | ||
| 34 | return; | ||
| 35 | } | ||
| 36 | |||
| 37 | 1; |