Re: Stripping XML declaration
William McKee <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.petal |
|---|---|
| Message-ID | <[email protected]> |
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