X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fttxml%2F_info;h=266a73404a152b0c008d87d6f9a107f8b3fb735f;hp=9bf0ddbcdebe9adb688670ec343145a591912cd9;hb=a8722345053b7cd860499aa31fd6bb414c120cc8;hpb=a89ccb89e84236ba0226038a1cbecc901e95614b diff --git a/ccan/ttxml/_info b/ccan/ttxml/_info index 9bf0ddbc..266a7340 100644 --- a/ccan/ttxml/_info +++ b/ccan/ttxml/_info @@ -1,11 +1,32 @@ -#include #include "config.h" +#include +#include /** * ttxml - tiny XML library for parsing (trusted!) XML documents. * * This parses an XML file into a convenient data structure. * + * Example: + * #include + * #include + * + * int main(int argc, char *argv[]) + * { + * XmlNode *xml, *tmp; + * + * xml = xml_load("./test/test.xml2"); + * if(!xml)return 1; + * + * tmp = xml_find(xml, "childnode"); + * + * printf("%s: %s\n", xml->name, xml_attr(tmp, "attribute")); + * + * xml_free(xml); + * + * return 0; + * } + * * License: GPL * Author: Daniel Burke */