in reply to Re: XML log files
in thread XML log files
Entities to the rescue!
Enter any 47-digit prime number to continue.
I knew there would be a nice XML way to do this. Merci Beaucoup, Muchos Gracias, Vielen Dank, Spacebo, Arigatou, Kiitos, Tusen Takk, Obrigado and Sanctuary match!
In fact for temporary hacking use at least it is possible to omit log.xml - the following code works:
$logfn = '/path/to/log.data'; print Dumper (XMLin(<<EOENT )); <?xml version="1.0"?> <!DOCTYPE log [ <!ENTITY data SYSTEM "$logfn"> ]> <log>&data;</log> EOENT
Dingus
Enter any 47-digit prime number to continue.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re(3): XML log files
by Dog and Pony (Priest) on Dec 05, 2002 at 17:23 UTC | |
Thanks?
by crenz (Priest) on Dec 05, 2002 at 17:49 UTC |
In Section
Seekers of Perl Wisdom