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

Re: Suggestions for a slightly less verbose (and easierto a


Re:  Suggestions for a slightly less verbose (and  easierto   a
Sean McGrath wrote:

> [Tim Bray]
>  >Machine-generated XML usually doesn't do entities or CDATA.  It does do
> 
>  ><someTag>
>  > ..stuff..
>  > ..stuff..
>  ></someTag>
> 
>  >and perl is just the ticket.
> 
> The problem of course is that there is no way to tell whether or not
> the 1 Gig XML instance you are about to process contains any entities,
> CDATA sections etc.

Right, if there's no way to tell, you might as well go ahead and use a 
real XML processor.  On the other hand if you're processing a database 
dump that gets generated by the same batch job every week and it's in 
XML, go ahead and use regexps or whatever turns your crank.

Mind you, when the morons in IT change the batch job without telling 
you, your code will break.  In this case, you *might* have done better 
using the XML processor, because if you were lucky enough that the 
morons broke well-formedness you're going to get a helpful error 
message; but if they just changed <foo> elements to <FindOuterOtter>, 
you're hosed whether you were using an XML processor or not.

> I see three possibilities to make this work reliably:

I don't think any of them are cost-effective.  If you're not 100% sure 
what you're getting, use a real XML processor and the problems go away. -Tim


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.