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

Subsetting/ Canonical Parsers/ XML Compliance/ etc.

  • From: Seairth Jacobs <seairth@b...>
  • To: xml-dev <xml-dev@l...>
  • Date: Fri, 10 Nov 2000 11:21:15 -0500

dtd xml compliance
Okay, so here are the two basic camps:
 
1) XML is a standard that should be conformed to 100% in parsers.  If it isn't going to be, then is should be called an "XML Parser".  Certainly, this is an ideal goal if you do not know how the parser will be used.  As a result, it needs to stay generic and expect to handle all combinations of needs.
 
2) XML is a recommendation that should be implemented in parsers as is appropriate to the situation.  It is still an XML parser of sorts, however.
 
The second camp is the way I choose to see XML.  For any particular implementation of XML, I define a DTD or Schema that fits my needs.  In my case, I deal exclusively with e-commerce markup and I use only a specific subset of the XML specification.  So I have two choices:  use a parser specific to my needs or use a general-purpose parser that will work of anyone.  While the latter will work, it is overkill (just like using an SGML parser would be overkill when processing XML).  My needs are fixed.  I will never receive XML that doesn't conform to the subset I use.  As a result, a parser that handles only that subset makes more sense.  Is it an actual XML parser?  Yes, since it does process certain XML.  No, since it doesn't process all XML.  But remember, I am only ever using certain XML, so from my point-of-view, the answer is "yes".
 
Everyone can complain until they are blue in the face about which is better.  In the end, it's a moot point.  If 1 million people use a special-purpose XML parser for a specific purpose, then that is absolutely fine.  It doesn't matter what the rest of the universe is doing with XML because it's not within their problem domain.  If there is cross-over of domains, then those people will use a different parser that fits their needs.
 
In the end, I would expect any development process to go something like this:
 
1) Define XML DTD or Schema.
2) Choose parser that will handle the application of this XML.
3) Implement XML using chosen parser.
 
If it means that someone uses more than one parser to get different jobs done, that's fine.  If it means that someone uses the "fully standard" parser to get different jobs done, that's fine as well.  In the end, deciding what subset of parser should be used for development is every bit as important as deciding what subset of XML should be used for DTD or Schema definition.
 
---
Seairth Jacobs
seairth@b...

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.