@@ -324,14 +324,18 @@ document* hexml_document_parse(const char* s, int slen)
324324 return d;
325325}
326326
327+/////////////////////////////////////////////////////////////////////
328+// TEST HARNESS (temporary)
329+
327330int main()
328331{
329− const document* d = hexml_document_parse("<test foo='123 xyz'><inner /> value</test>", -1);
330− char buf[1000];
331− int len = hexml_node_render(d, hexml_document_node(d), buf, sizeof(buf));
332− buf[len] = 0;
333− printf("Result = %s\n", buf);
334− return 0;
332+ const document* d = hexml_document_parse("<test foo='123 xyz'><inner /> value</test>", -1);
333+ char buf[1000];
334+ int len = hexml_node_render(d, hexml_document_node(d), buf, sizeof(buf));
335+ buf[len] = 0;
336+ printf("Result = %s\n", buf);
337+ printf("Used nodes = %i, attribtes = %i\n", d->nodes.used_front, d->attrs.used);
338+ return 0;
335339}
336340
337341/*