OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: API versioning in SAX

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Murray-Rust <peter@ursus.demon.co.uk>
  • To: <xml-dev@ic.ac.uk>
  • Date: Thu, 30 Jul 1998 23:25:13

At 17:10 30/07/98 -0500, January Tsai wrote:
>I just started leaning XML so correct me if I'm wrong here.
>
>I think it's a great idea!

You're right - it is. It takes a little while to learn everything about it
:-). 
>
>Since SAX is actually a SIMPLE API for XML,
>it helps a lot if we have some functions like:

It's important that you read the spec (REC-xml-19980210) and get the
terminology right. The basic unit of XML is an Element (not an Item) and
since Elements can contain other Elements you can't just get a String Value. 
>
>public String getValue( String ItemName, String DocumentName, ... );
>public boolean putValue( String Value, String ItemName, String Document...);

SAX is not an editor or authoring tool so you can't use it to add data.

>
>Just compare to those registry access functions,
>they are very handy.

I think you'll find that actually using SAX-based parsers is quite a good
way to get to know XML. There are now many examples and most of them have
simple test routines that will give you some idea of what is going on. Also
if you go to the 'XML Home Page' (http://www.sil.org/sgml/xml.html) you'll
find lots of good material or the FAQ (http://www.ucc.ie/xml).

	P.

[Also on XML-DEV we try to avoid copying the whole of the message to which
we are Reply-ing.]

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS