[Petal] Stripping XML declaration
William McKee
william at knowmad.com
Wed Jan 12 15:05:50 GMT 2005
On Tue, Jan 11, 2005 at 10:18:33PM -0500, Josh Narins wrote:
> But I *want* to strip the XML declaration. At least for some
> user-agents.
>
> Any tips?
When you get the processed string back from Petal's process() function,
why not massage it to remove this offending text with a s/// command? If
you're not sure how to write the replace regex (I'm no help here) or
need more precision, you could call in MKDoc::XML::Tokenizer or another
XML library to help parse the string.
HTH,
William
--
Knowmad Services Inc.
http://www.knowmad.com
More information about the Petal
mailing list