Stewart Stremler <[EMAIL PROTECTED]> writes:

> The Java XML APIs seem to be based off of the C++ APIs. (Or maybe
> vice-versa.)

It's a little of both. expat, the first C parser in general use, had an
event-based interface much like SAX, but SAX started in Java long before
it was aped in C++. On the other hand, the StAX interfaces
(javax.xml.stream) came long after several C and Java parsers offered
pull-based interfaces.

> Maybe in languages like Lisp or Forth it's different.

The Common Lisp XML processing libraries I've tried have either been
like SAX or DOM-like, but only in that the latter generate a tree of
Lisp structures; they don't bother following any of the DOM interfaces.¹


Footnotes: 
¹ For example, see the "DOM" section here:
  http://common-lisp.net/project/s-xml/

-- 
Steven E. Harris


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to