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

Re: To continue parsing after a fatal error.

  • From: Jeff Greif <jgreif@a...>
  • To: Anoop A V <anoop_scorpio@h...>, xml-dev@l...
  • Date: Tue, 23 Oct 2001 12:35:14 -0700

sax error recovery
Normally you might attempt to deal with this kind of problem using a custom
SAX error handler.  In MSXML3, however, you may not be able to this, because
the underlying parsing code makes all errors fatal (calls the error
handler's fatalError ()method always, rather than ever calling its error()
or ignorableWarning() methods). It appears that treating all errors as fatal
limits recovery options.
Details (not very many) are here:
http://msdn.microsoft.com/library/en-us/xmlsdk30/htm/isaxerrorhandler_interf
ace.asp?frame=true

I only looked this up out of curiosity.  I have not tried it myself and am
not pretending to be authoritative.

Jeff
----- Original Message -----
From: "Anoop A V" <anoop_scorpio@h...>
To: <xml-dev@l...>
Sent: Tuesday, October 23, 2001 10:51 AM
Subject:  To continue parsing after a fatal error.


> Hi,
> I have an 800 MB file which I need to parse. When I do this using MSXML
SAX
> parser, I get a fatal error with the message "Invalid character found in
> text content". And the parsing will be stopped. But I need to continue
> parsing the file even if an invalid character is met. I don't mind if that
> particular node(s) is skipped. But I need to parse the whole file. This
file
> is not under my control, so there is no question of my being able to edit
> this file and remove the invalid characters. Can anybody help?
>
> Thanks.
> Anoop.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>


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.