+1 And let me second Neil's recommendation for BeautifulSoup. It's a great and very effective way to ask questions of XMLish documents.
cheers, --titus On Thu, Oct 30, 2014 at 10:53:32AM -0200, Raniere Silva wrote: > Hi Aleksandra, > > > The idea is that they will need to grab some XML files, parse > > them and then do some rather simple manipulation with the outputs. > > What about using JSON or YAML instead of XML? I don't want to raise a flame > war > about file formats but Python's Standard JSON library [1] and PyYAML [2], in > case you want use a third party library for your example, is very good for > examples. > > Backing to XML > > > ElementTree vs lxml is the argument you'll get into for which Python XML > > library you're going to want to use. I can't comment on this. > > Just a few words from my experience. ElementTree avoid user to install third > party libraries but isn't easy to use. lxml is fast but the documentation > need a > little improvement for a novice perspective. > > This are my two cents. > > Raniere > > [1] https://docs.python.org/3/library/json.html > [2] http://pyyaml.org/ > _______________________________________________ > Discuss mailing list > [email protected] > http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org -- C. Titus Brown, [email protected] _______________________________________________ Discuss mailing list [email protected] http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org
