libxml2

{{Short description|Free software library}}

{{Lowercase}}

{{redirect-distinguish|libXML|XML Library}}

{{Infobox software

| name = libxml2

| author = The GNOME Project

| released = {{Start date and age|1999|09|23}}

| latest release version = {{wikidata|property|edit|reference|P348}}

| latest release date = {{start date and age|{{wikidata|qualifier|mdy|P348|P577}}}}

| programming language = C

| operating system = cross-platform{{cite web|url=http://xmlsoft.org/intro.html|title=Introduction|access-date=25 March 2018|date=28 November 2017}}

| genre = XML parser, XML validator

| license = MIT License

}}

libxml2 is a software library for parsing XML documents. It is also the basis for the libxslt library which processes XSLT-1.0 stylesheets.

Description

Written in the C programming language, libxml2 provides bindings to C++, Ch,{{cite web|url=http://chlibxml2.sourceforge.net/|title=ch libxml2 open source binding}} XSH, C#, Python, Swift, Kylix/Delphi and other Pascals, Ruby, Perl, Common Lisp,{{cite web|url=http://code.google.com/p/cl-libxml2/|title=cl-libxml2 High-level wrapper around libxml2 and libxslt libraries}} and PHP.{{Cite web|url=http://php.net/manual/en/book.libxml.php|title=PHP: libxml - Manual|website=php.net|access-date=2016-05-16}} It was originally developed for the GNOME project, but can be used outside it. libxml2's code is highly portable{{Cite web|url=http://www.xmlsoft.org/python.html|title=Python and bindings|website=www.xmlsoft.org|access-date=2016-05-16}} since it only depends on standard ANSI C libraries{{Cite web|url=http://www.xmlsoft.org/xml.html|title=The XML C parser and toolkit of Gnome|website=www.xmlsoft.org|access-date=2016-05-16}} and it is available under the MIT license.{{Cite web |date=2022-12-08 |title=Home · Wiki · GNOME / libxml2 · GitLab |url=https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home |access-date=2023-06-26 |website=GitLab |language=en}}

It includes the command-line utility xmllint and an HTML parser.{{cite web |last1=Veillard |first1=Daniel |title=HTMLparser: interface for an HTML 4.0 non-verifying parser |url=https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-HTMLparser.html |website=libxml2 Reference Manual |publisher=GNOME}}

See also

{{Portal|Free and open-source software}}

References

{{Reflist}}