[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML's Scylla and Charybdis - parse and regexp


use regex to parse cdata
jonathan.robie@d... (Jonathan Robie) writes:
>I wasn't so much asking whether faithful lexical round-tripping is an
>important goal for me, I think I know the answer to that question. I
>was more interested in asking why this is important to you, and which
>problems you are solving for which such distinctions are significant.

Most of my day-job use of XML is heavily dependent on entity processing,
both for chapters and for special characters.  Preserving the original
without normalizing the document is useful in such cases, to say the
least.

CDATA section handling/ignoring has become an issue for me in the last
week, thanks to a fairly broken set of assumptions made by a database in
its exporting XML.  That gets especially interesting when combined with
cases where CDATA sections are used intentionally and where you want to
avoid processing entities.

Whitespace in tags, quote styling on attributes, and other similar
features are less of a priority to me, though they can be very useful
for marking content that's to be changed using text-based tools without
affecting consuming applications.  I don't need them as much personally,
but as long as I'm going to the effort, I might as well preserve them
and save someone else the effort later.

 
-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.