Lists Home |
Date Index |
- From: Peter Murray-Rust <firstname.lastname@example.org>
- To: <email@example.com>
- 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).
[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
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)