词条 | Expat (library) |
释义 |
| name = Expat | logo = | screenshot = | caption = | author = James Clark | developer = Clark Cooper, et al. | released = {{Start date and age|1998}} | latest release version = 2.2.6 | latest release date = {{Start date and age|2018|8|12}} | latest preview version = | latest preview date = | programming language = C | operating system = Portable | platform = | genre = XML parser library | license = MIT License | website = {{URL|https://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. TimelineSoftware 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|date=November 2016}} 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. AvailabilityGitHub hosts the Expat project. Versions exist for most{{Quantify|date=June 2011}} major{{Citation needed|date=June 2011}} operating-systems. DeploymentTo 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. External links
3 : XML parsers|C libraries|Software using the MIT license |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。