On Tuesday, May 5, 2015 at 5:28:37 AM UTC-4, Sayth Renshaw wrote:
> Hi
> 
> Just checking if the reaction to cry when given XML is normal. 
> 
> Sayth

Hi Sayth,
My experience in general is just like what Chris said. Except when dealing with 
DocBook XML which is probably not what you have. But I cannot say enough good 
things about lxml, which is my favorite 3rd-party package ever. Its support for 
xpath really makes it easy to traverse and select elements in a document tree.  
Plus the ability to drop subtrees, move elements around in a live tree, etc. 
Great library.

Using lxml to parse and restructure the xml to a dictionary isn't too hard, but 
of course it depends on the xml you have to deal with. Sometimes weeping is 
just part of the job.

good luck,
--Tim
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to