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

Re: Article: "The horror of XML"

Re:  Article: "The horror of XML"
On Wednesday 30 October 2002 15:26, Seairth Jacobs wrote:
> Hmm...  I have several problems with this article:
> 1) Not require end tags?  I don't see how a generic parser could possibly
> process XML that was missing end tags.  The only reason that HTML browsers
> can do it (sort of) is because they also have intimate understanding of the
> semantics of HTML (e.g. can distinguish block-level presentation elements
> from in-line presentation elements, etc).  Maybe if the parser hinted at in
> this article were designed for a very specific use of XML, I might
> understand this statement.  Otherwise, I think the statement is bunk.

Given a DTD you should be able to do that - it's just recovery rules.

I mean at any point in parsing you have a stack of elements the current 
context is enclosed by. You find something invalid in the current context, so 
loop around popping stuff of the stack until it's valid.

But for the record, I wouldn't condone such activity in anything claiming to 
be an XML parser...

> Seairth Jacobs
> seairth@s...


A city is like a large, complex, rabbit
 - ARP


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.
First Name
Last Name
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.