API versioning in SAX

Peter Murray-Rust peter at ursus.demon.co.uk
Fri Jul 31 00:25:37 BST 1998

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).


[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

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

More information about the Xml-dev mailing list