Hi Aleksandra, what sort of manipulation are you going to ask your students to do? Is it just finding elements and then doing something, or is it something more complex.
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. Strangely, I recently did a little bit of XML parsing and used BeautifulSoup (normally used for web pages) as I'm more used to it, and it does work (and can use ElementTree or lxml as its basic parser). Neil On 30 October 2014 11:51, Aleksandra Pawlik <[email protected]> wrote: > Hello! > > We are running an SWC course at Manchester as a part of a one week > training for MSc students in Clinical Bioinformatics. We have 2.5 days > for SWC and then the students will work on a small programming task in > teams. The idea is that they will need to grab some XML files, parse > them and then do some rather simple manipulation with the outputs. > > At the end of the SWC (we'll be using Python) we want to show them how > to use a _simple_ library for XML. So before I dive into Google, I > though I'd be lazy and ask the SWC community: > 1) Has anyone created an SWC module on XML? If yes, can you point me to it? > 2) Which Python library from XML would you recommend? > 3) Do you have any other suggestions? > > Before you jump on me saying "What the heck are you doing?Software > Carpentry doesn't teach XML." I'll just say that the goal is _not_ to > focus on XML. We want to show them how to use Python libraries. XML is > an example and in the case of this particular audience, it is a better > example than NumPy and SciPy (we had lots of discussions with prof. > Andy Brass who runs the whole course). We will deliver the standard > SWC but the remaining 2 days they are supposed to try flying on their > own, working in groups writing a small program using what we taught > them (structured programming, version control etc.) > > So, halp? Anyone? > > Many thanks. > Aleksandra > > _______________________________________________ > Discuss mailing list > [email protected] > > http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org > > -- Neil Chue Hong Director, Software Sustainability Institute EPCC, University of Edinburgh, JCMB, Edinburgh, EH9 3FD, UK Tel: +44 (0)131 650 5957 http://www.software.ac.uk/ LinkedIn: http://uk.linkedin.com/in/neilchuehong Twitter: http://twitter.com/npch ORCID: http://orcid.org/0000-0002-8876-7606
_______________________________________________ Discuss mailing list [email protected] http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org
