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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: YAXPAPI (Yet Another XML Parser API)- an XDEV proposal

[ Lists Home | Date Index | Thread Index ]
  • From: "Simeon Simeonov" <simeons@allaire.com>
  • To: <xml-dev@ic.ac.uk>
  • Date: Sun, 14 Dec 1997 17:00:04 -0500

I come to this discussion late (4:30pm EST on Sunday :) so my set of
assorted notes is addressed at no one in particular.

I like the acronym SAX. It's short and sweet.

In principle I agree with the idea that an API simpler than what DOM exposes
will be useful. This is especially true in the short run--until fully DOM
compliant implementations with a variety of language bindings become readily
available. I absolutely agree with the need for both event-driven and a
tree-based interfaces. My product, the Cold Fusion Application Server, needs
both. And it really only needs to know about text, elements, and attributes.
All else is currently of no interest to the tens-of-thousands of web
application developers that use CFAS.

A note of caution. I hope that in your mind SAX is not the same as SAX-J.
Some of the API proposals I have seen have a very strong Java flavor. For
example, I see the need for an API that does not require runtime type
information. The equivalent of instanceof in C++ is the dynamic_cast<T>()
operator. It requires the enabling of RTTI which imposes an immediate and
quite noticeable size and performance penalty. IMHO, runtime type
information is necessary only when the object model of a system is
undergoing continuous change. I don't see this being the case with SAX.

I cannot invest the time in writing an XML parser in C++ right now, but I'd
be more than happy to contribute to this discussion to make sure that SAX is
a C++-friendly API.


Simeon Simeonov

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