[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: RE: Penance for misspent attributes
On Fri, 2002-05-17 at 11:34, Sean McGrath wrote: > At 10:56 17/05/2002 -0500, Eric Bohlman wrote: > >An even simpler alternative is a SAX filter that does nothing but condense > >consecutive PCDATA > >events. > > This doesn't help the mixed content case. I'm not sure that helps enough, but I just wrote a SAX filter that wraps mixed content in elements: <p>This <b>is</b> a test</p> Becomes: <p><mix:ed>This </mix:ed><b>is</b><mix:ed> a test</mix:ed></p> While: <p>This is a test</p> remains the same as it was. I'll be posting it next week as part of a small library for separating text from markup. -- Simon St.Laurent Ring around the content, a pocket full of brackets Errors, errors, all fall down! http://simonstl.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|