X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fttxml%2F_info;h=3ec45207bff73e09531ab160284e18bc9d7dcbe6;hb=c92b496623f29cfb3ac1ade8e52ffbfa95ab5bcf;hp=9bf0ddbcdebe9adb688670ec343145a591912cd9;hpb=a89ccb89e84236ba0226038a1cbecc901e95614b;p=ccan diff --git a/ccan/ttxml/_info b/ccan/ttxml/_info index 9bf0ddbc..3ec45207 100644 --- a/ccan/ttxml/_info +++ b/ccan/ttxml/_info @@ -6,6 +6,26 @@ * * 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 */