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

Re: Error and Fatal Error

  • From: Michael Kay <mike@saxonica.com>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 16 Jul 2011 20:32:16 +0100

Re:  Error and Fatal Error

> I think we need a parser which understands the
> slightly erroneous XML and can find any errors in it:
> In short we need a parser which has an API which
> can allow the web developer (in this case with .NET)
> to repair XML.
>
I find it very useful to have a Java IDE which can turn what I type into 
syntactically correct Java, especially as it's both configurable and 
interactive so I can tell it what rules to apply in doing this job. But 
I wouldn't want the Java compiler itself to silently make assumptions 
about what I intended when I give it incorrect source code.

Similarly I think there's a distinction between what an XML parser 
should do, and what a data cleansing tool might attempt in terms of 
turning garbage into XML.

And I'm not sure that data cleansing tools need to be interoperable, in 
which case there is no reason for standards organisations to get 
involved in designing how they should work.

That's not to say, of course, that the spec couldn't be a bit more 
liberal in its definition of well-formed XML; for example it could allow 
the whitespace between attributes to be omitted, or it could allow "--" 
in comments, or it could allow "&" to represent itself if not followed 
by a name character. But changing the definition of the language is one 
thing; encouraging parsers to accept things that the language disallows 
is another.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.