On 06/04/2012 05:39 PM, Lucas Meneghel Rodrigues wrote: >> confine it more toward virt in general, or keep it all libvirt specific? >> Any ideas for other classes/functions you'd like to see? > > Wrappers around the xml module that do work with py 2.4 and above, and > do the heavy lifting for stuff you have already mentioned: > > + Attribute search, attribute search and replace, add/delete. > + Element search, element search and replace, add/delete. > + Transform json/dict data to xml
On the last item, I see there is no native json support until python 2.6 :( What's your opinion on just extracting that and making it work under 2.4 (then stick it in a contribs directory or something)? This may be easier than writing a parser from scratch. Thinking about this more, any xml2dict or dict2xml functionality will be a really difficult/time-consuming undertaking. It requires DTD (schema) definition processing, and lots of domain-specific data. The alternate, is either domain-specific functions or some type of template system. Both require coding every case by hand, and therefor leaving this as add-hoc is probably more practical for now. Did you have something specific in mind relating to JSON? -- Chris Evich, RHCA, RHCE, RHCDS, RHCSS Quality Assurance Engineer e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest