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

Re: New expat test release

  • From: James Clark <jjc@j...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Tue, 27 Apr 1999 09:59:22 +0700

expat stop processing
"Simon St.Laurent" wrote:
> 
> At 07:46 PM 4/25/99 +0700, James Clark wrote:
> >XML_SetNotStandaloneHandler() allows you to control what to do with
> >documents that have a DTD and standalone="no"
> 
> What exactly are we supposed to hand this method and what exactly is it
> supposed to do?  Is this for passing off non-standalone documents to a
> different processor, or is this part of a mechanism we might be able to use to
> make expat deal with external resources?
> 
> xmlparser.h just has:
> >
> > void XMLPARSEAPIXML_SetNotStandaloneHandler(XML_Parser
> > parser,                   XML_NotStandaloneHandler handler);

It also has:

/* This is called if the document is not standalone (it has an
external subset or a reference to a parameter entity, but does not
have standalone="yes"). If this handler returns 0, then processing
will not continue, and the parser will return a
XML_ERROR_NOT_STANDALONE error. */

typedef int (*XML_NotStandaloneHandler)(void *userData);

It doesn't allow expat to handle external DTDs.  Typically you would use
this to stop processing with an error, to continue processing probably
with a warning, or to invoke a different processor.

James



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.