Bring pageSetup into what we look at.
[pspp] / parse-xml.c
index 7fc3da2ed1ba84acd2c6867d957129cc2c3f156b..9faa946f45a7ac64574312b8505d139d4e07f2ee 100644 (file)
@@ -117,7 +117,7 @@ print_attribute (xmlNode *node, const char *attr)
     }
 }
 
-static xmlNode *
+static __attribute__((unused)) xmlNode *
 find_page_setup (xmlNode *node)
 {
   for (; node; node = node->next)
@@ -176,10 +176,14 @@ main (int argc, char **argv)
     }
 
   xmlNode *root = xmlDocGetRootElement(doc);
+
+#if 0
+  /* Limit what we look at to pageSetup node and below. */
   root = find_page_setup(root);
   if (!root)
     return 0;
   root->next = NULL;
+#endif
 
   if (!strcmp(argv[2], "containment"))
     print_containment (root);