Registry / serialization / expat
library2.8.0vcpkgunverified

XML parser library written in C, providing fast stream-oriented parsing.

vcpkg install expat
INSTALL
IMPORT
SIG · EXPAT
E
expat
serializationcppv2.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

expat.h
#include <expat.h>

Parses a simple XML string using Expat.

#include <expat.h> #include <iostream> void startElement(void *userData, const XML_Char *name, const XML_Char **atts) { std::cout << "Start element: " << name << "\n"; } int main() { XML_Parser parser = XML_ParserCreate(NULL); XML_SetElementHandler(parser, startElement, NULL); const char *xml = "<root><item/></root>"; if (XML_Parse(parser, xml, strlen(xml), XML_TRUE) == XML_STATUS_ERROR) { std::cerr << "Parse error\n"; } XML_ParserFree(parser); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.8.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

expat — pip install expat · libregistry