[Tinyos-devel] XML in Perl in TinyOS?

David Gay dgay42 at gmail.com
Thu Apr 23 21:44:58 PDT 2009


On Thu, Apr 23, 2009 at 8:48 PM, John Regehr <regehr at cs.utah.edu> wrote:
> I need to parse some XML (dumped from nesC...) in my stack tool.
> Perhaps I mis-grepped, but I can find no use of XML parsing modules in
> any of the Perl scripts that are part of TinyOS 2.x.
>
> So I am left with the question: Which such module should I use, in order
> to not require that everyone who wants to use this tool has to install
> new Perl modules?
>
> A quick survey of machines I use (one Cygwin, one Ubuntu Hardy) shows
> that XML::Parser is available on both systems.  Is that one a reasonable
> choice?
>
> Any help appreciated, I am an XML noob (and wish I could stay that way).

No really obvious comments, except to note that XML::Simple won't
always work (it loses the order of elements in lists, which is
required by some parts of the nesC XML dump, e.g. for function
argument types IIRC).

David



More information about the Tinyos-devel mailing list