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

RE: Handling well-formedness or validity errors

  • From: Mike Brown <mbrown@c...>
  • To: 'Seairth Jacobs' <seairth@b...>
  • Date: Mon, 18 Dec 2000 19:15:38 -0700

handling nan
Seairth Jacobs  wrote:
> When processing an XML ducument, how do you all suggest
> returning an appropriate error when the document is either
> not well-formed or is not valid (against a DTD or schema)?

I think you answered your own question in the rest of your message; you want
to avoid using transport-specific error messages for well-formedness or
validity errors. If there was no problem with the transmission/transport of
the data, regardless of how parseable it is, then an HTTP 4xx error response
is not appropriate.

However it is not out of the question to use the body of an HTTP response to
provide an acknowledgement and success/failure info, in any format.. just
don't pick the response code based on that. If the transmission was
successful, return a 200, 201 or 204, according to the guidelines in section
9.5 of the HTTP/1.1 spec. In fact, 10.2.1 says that for a POST (I do hope
you are using POST), a 200 indicates that the request succeeded and it
should provide an entity (body) describing or containing the result of the
action. So there you go. Success of the request is not the same as the
result of the action.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources:
webb.net in Denver, Colorado, USA              http://skew.org/xml/

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.