I have a device that measures a number of channels of data, which I can read via a serial link connection. I want to gather that information periodically and send it in an xml format to a server on the internet, via my openwrt router. The xml data file template is approximately 2.2KB and I was wondering what options made sense to implement this application.
I did search for xml libraries and found libezxml, libxml2, libmxml and libmicroxml. libezxml and libmxml look quite old (2006 and 2004 respectively). I presume they are unmaintained, but would likely work ok for my purpose, yes/no/maybe ?? libxml2 is very current, but also quite large (being part of gnome) and is likely to be overkill (and may not fit on my device ??), yes/no/maybe ?? libmicroxml looks ok. Last edit was June 2012 (I think) and is part of the freecwmp effort (and targets openwrt). Would openwrt experts recommend libmicroxml as the most suitable xml library for new projects targeting an openwrt application ?? BTW, does anyone know if libmicroxml is related to the W3C MicroXML community ?? Another thought I had was to just have the xml template in a file, with unique markers where the data should go, then just use some kind of text substitution (e.g. using regular expressions, sed, or some other text processing/scripting magic). I've done something similar before in a Python app on my PC and it did the job. Any thoughts on my alternative method versus using an xml library to format the data ?? Thanks, Brendan.
_______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
