#include #include #include "xml.h" void print_xml(void *, char *, int); int main(int argc, char **argv) { if (argc < 1) { printf("usage: printtree \n\n"); } else { void *rid; rid = xmlOpen(argv[1]); if (xmlErrorGetNo(rid, 0) != XML_NO_ERROR) { printf("%s\n", xmlErrorGetString(rid, 1)); } else if (rid) { unsigned int i, num; void *xid; xid = xmlMarkId(rid); num = xmlNodeGetNum(xid, "*"); for (i=0; i