Misplaced Pages

Expat (software)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Expat (library)) Parser library
This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources.
Find sources: "Expat" software – news · newspapers · books · scholar · JSTOR (November 2009) (Learn how and when to remove this message)
Expat
Original author(s)James Clark
Developer(s)Clark Cooper, et al.
Initial release1998; 27 years ago (1998)
Stable release2.6.4 Edit this on Wikidata / 7 November 2024; 55 days ago (7 November 2024)
Repository
Written inC
Operating systemPortable
TypeXML parser library
LicenseMIT License
Websitelibexpat.github.io

Expat is a stream-oriented XML 1.0 parser library, written in C, more precisely C99. As one of the first available open-source XML parsers, Expat has found a place in many open-source projects. Such projects include the Apache HTTP Server, Mozilla, Perl, Python and PHP. It is also bound in many other languages.

Naming

According to the original creator, the name Expat came from the fact that he was an expat at the time. The "ex" and the "pa" are for XML and parsing.

Timeline

Software developer James Clark released version 1.0 in 1998 while serving as technical lead on the XML Working Group at the World Wide Web Consortium. Clark released two more versions, 1.1 and 1.2, before turning the project over to a group led by Clark Cooper and Fred Drake in 2000. The new group released version 1.95.0 in September 2000 and continues to release new versions to incorporate bug fixes and enhancements.

Availability

GitHub hosts the Expat project. Versions exist for most major operating-systems.

Deployment

To use the Expat library, programs first register handler functions with Expat. When Expat parses an XML document, it calls the registered handlers as it finds relevant tokens in the input stream. These tokens and their associated handler calls are called events. Typically, programs register handler functions for XML element start or stop events and character events. Expat provides facilities for more sophisticated event handling such as XML Namespace declarations, processing instructions and DTD events.

Expat's parsing events resemble the events defined in the Simple API for XML (SAX), but Expat is not a SAX-compliant parser. Projects incorporating the Expat library often build SAX and possibly DOM parsers on top of Expat. While Expat is mainly a stream-based (push) parser, it supports stopping and restarting parsing at arbitrary times, thus making the implementation of a pull parser relatively easy as well.

References

  1. "Release 2.6.4 · libexpat/libexpat". Retrieved 8 November 2024.
  2. "COPYING". Github. Retrieved 16 September 2019.
  3. Pipping, Sebastian (2024-02-06). "Expat 2.6.0 released, includes security fixes". www.xml.com. Retrieved 2024-09-04.

External links

Categories: