[ale] grrr, sed sucks!
Fletch
fletch at phydeaux.org
Sun May 11 22:46:15 EDT 2003
>>>>> "Christopher" == Christopher Bergeron <christopher at bergeron.com> writes:
Christopher> I'm trying to convert every occurrence of >< (between
Christopher> xml tags) into >newline< in a staroffice content.xml
Christopher> file. For some reason, it's not working, and it's
Someone else's already pointed out the perl one liner (hey, I didn't
read mail yesterday :), but I thought I'd point out that blindly
substituting for things in XML may not work. For a pathalogical
example, you might have `<![CDATA[><]]>', which is an non-entity
literal `><'.
Granted I don't know if StarOffice would use this particular
construct, but it's something to keep in mind when processing XML (or
HTML, or SGML). In general it's safer (read `will be more certain of
producing correct results') to use a proper parser than to try and
kludge something with regexen.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 294-0820 (m) | scary questions." -- Jules =(___)=
| U
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list