Expat

Short description: Parser library

ExpatOriginal author(s)| James Clark

|

Developer(s)| Clark Cooper, et al.
Initial release| 1998; 28 years ago (1998)
Stable release|

2.5.0 / October 25, 2022; 3 years ago (2022-10-25)[1]

Written in| C
Operating system| Portable
Type| XML parser library
License| MIT License[2]
Website| libexpat.github.io

Expat is a stream-oriented XML 1.0 parser library, written in C. 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.

## Contents

* 1 Timeline
* 2 Availability
* 3 Deployment
* 4 References
* 5 External links

## 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.[citation needed] 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[quantify] major[citation needed] 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. ↑ "RELEASES". https://github.com/libexpat/libexpat/releases. Retrieved 25 October 2022.
2. ↑ "COPYING". https://github.com/libexpat/libexpat/blob/master/expat/COPYING. Retrieved 16 September 2019.

## External links

* Expat Project Home Page
* Using Expat, Clark Cooper, 1999

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Expat&oldid=836429"