Expat (XML)

Expat (XML)

Infobox Software
name = Expat



caption =
developer = James Clark et al.
latest_release_version = 2.0.1
latest_release_date = June 5, 2007
latest_preview_version =
latest_preview_date =
operating_system = Portable
platform =
genre = XML parser library
license = MIT License
website = [http://expat.sourceforge.net/ expat.sourceforge.net]

Expat is a stream-oriented XML 1.0 parser library, written in C. Expat was one of the first XML parsers available as "open source", and has been incorporated into many open source projects. Such projects include the Apache HTTP Server, Mozilla, Perl, Python and PHP.

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. Expat is hosted as a SourceForge project. Versions are available 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 are similar to 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 too.

External links

* [http://expat.sourceforge.net/ Expat Project Home Page]
* [http://sourceforge.net/projects/expat/ Expat project page at SourceForge]
* [http://www.xml.com/pub/a/1999/09/expat/index.html "Using Expat", Clark Cooper, 1999]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Expat — Тип Библиотека парсинга XML Написана на C[1] Операционная система Кроссплатформенный Последняя версия 2.0.1 (5 июня 2007 …   Википедия

  • Expat — has multiple meanings:* A shortened version of the term Expatriate. * expat (XML): A stream oriented XML parser …   Wikipedia

  • Expat — Saltar a navegación, búsqueda Expat Desarrollador James Clark et al. expat.sourceforge.net Información general …   Wikipedia Español

  • XML — Infobox file format name = Extensible Markup Language icon = logo = extension = .xml mime = application/xml, text/xml (deprecated) type code = uniform type = public.xml magic = owner = World Wide Web Consortium genre = Markup language container… …   Wikipedia

  • .xml — Extensible Markup Language Extensible Markup Language Extension de fichier .xml Type MIME application/xml, text/xml Développé par World Wide Web Consortium Type de format …   Wikipédia en Français

  • XML — Extensible Markup Language Extensible Markup Language Extension de fichier .xml Type MIME application/xml, text/xml Développé par World Wide Web Consortium Type de format …   Wikipédia en Français

  • Xml — Extensible Markup Language Extensible Markup Language Extension de fichier .xml Type MIME application/xml, text/xml Développé par World Wide Web Consortium Type de format …   Wikipédia en Français

  • James Clark (XML expert) — James Clark, (February 23 1964) is the author of groff and expat and has done much work with open source software and XML. Born in London, and educated at Charterhouse and Merton College, Oxford, Clark has lived in Bangkok, Thailand since 1995,… …   Wikipedia

  • Validación XML — La Validación XML (eXtensible Markup Language) es la comprobación de que un documento en lenguaje XML está bien formado y se ajusta a una estructura definida. Un documento bien formado sigue las reglas básicas de XML establecidas para el diseño… …   Wikipedia Español

  • Dialecte XML — Extensible Markup Language Extensible Markup Language Extension de fichier .xml Type MIME application/xml, text/xml Développé par World Wide Web Consortium Type de format …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”