logo       

Perl and XML book: msg#00010

lang.perl.xml

Subject: Perl and XML book

Hi All

I am reading the PERL & XML Book and playing with the

XML::Parser::PerlSAX

parser. In Chapter 5 there is an example of a filter using the DTD Handlers
that should output an XML instance without changing it..

Using the PERL code from the book and the sample DTD (from
O'Reilly's web site) the output from the filter is

<?xml version="1.0"?>
<!ENTITY thingy "hoo hah blah blah">
<!DOCTYPE book
SYSTEM "/usr/local/prod/sgml/db.dtd"
[
]>
<book id="mybook">
: : :
rather than

<?xml version="1.0"?>
<!DOCTYPE book
SYSTEM "/usr/local/prod/sgml/db.dtd"
[
<!ENTITY thingy "hoo hah blah blah">
]>
<book id="mybook">
: : :

Can someone explain why this is happening?

Thanks

Bill Conrad






_______________________________________________
Perl-XML mailing list
Perl-XML@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise