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

XML API spec

  • From: Richard Light <richard@l...>
  • To: xml-dev@i...
  • Date: Fri, 28 Feb 1997 12:38:11 +0000

xml processor
Interface (API-related) jobs the XML processor has to do

I've just read through the XML spec (as of 14 Nov 96), and tried to
get an idea of the potential scope of the API.  These notes
summarise what I found/thought.  It may all be painfully obvious
(or wrong), but I haven't seen any other attempts at looking at the
task this way, so here goes:

Presumably the XML processor is a 'slave' to the application, and
only does what it's told to.

View of the XML document
What does the application 'see' of the XML document it has asked the
XML processor to open?  The spec implies that it should have pretty
direct access, e.g.:

  "An XML processor must inform the application of the length of
  comments if they are not passed through, to enable the application
  to keep track of the correct location of objects in the XML

This fills me with gloom.  Shouldn't there be a level of abstraction
here, so the API simply hands the application objects, and information
about objects?  In this case, shouldn't it flag the presence of a
comment and leave it at that?  If the application wants the comment,
it can ask the XML processor for it!

The application needs to tell the XML processor to open
a document.  This could be by reference (system id) or the document
could be piped straight in.  The 'open document' command needs to
have arguments to set the processing mode, e.g.:

- check to 'valid' or 'well-formed' level;
- pass back a complete parsed document or just await further

Passing characters to the application
Will the XML processor tell the application what encoding is in use?
Then simply pass stuff through 'as found' (apart from converting
character references to bit patterns as described)?

I'll stop there to see if this is on the right lines or not ...


Richard Light
SGML and Museum Information Consultancy
3 Midfields Walk 
Burgess Hill
West Sussex RH15 8JA
tel. (44) 1444 232067

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


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.