libnxml

C library for parsing, writing, and creating XML files

brewmacoslinux
Try with needOr install directly
Source

About

C library for parsing, writing, and creating XML files

Examples

parse and read XML file in C program$ #include <libnxml.h> /* Link with: gcc program.c -lnxml */
validate XML structure while parsing$ /* Use xmlDocParseFile() with error callbacks in libnxml */
extract data from XML nodes in C code$ /* Use xmlNodeGetContent() and xmlNodeGetAttribute() */
generate and write XML documents programmatically$ /* Use xmlNewDoc() and xmlNewNode() to create XML trees */
integrate XML parsing into C application$ pkg-config --cflags --libs libnxml