Fairly simple XML DOM and JSON implementation in C