Good instructions on how to use ElementTree to parse XML by Eli Bendersky.
Overall the blog “Life is Short – You Need Python” is really informative. Lot of great tips and tricks. He’s posted a simple case of parsing XML in python as an example. PDF: Simple and easy XML parsing with lxml _ life is short – you need Python!
An Introductory guide to the XML package for R-Project, written by Duncan Temple Lang
Besides the XML package, Omega Project for Statistical computing has a number of other R-Project packages that look very interesting, like KML, Python, and WordPress packages.
Code example of how to get the current directory, change directories, and set the output to someplace specific – designed to work on both windows and unix.
# Finds the directory that a program was run from, change the directory
# and creates an output file within a subdirectory. This code is designed
# to run on both mac and windows.
# what is the current working directory? notice the difference when running
# from unix/mac verses windows
# change the current working directory. use forward slash regardless of unix
# or windows
# create a file in a subdirectory from the current working directory
# this method makes the results operating system agnostic
# each entry in the parameters is the next directory level, ending with the
# file name os.path.join inserts the appropriate separators
file_path = os.path.join(wd,"xml","output.xml")
# file is now open as 'f'
When using Microsoft Sharepoint with python, you may need the ability for ntlm authentication when using requests to access data. There is a python module that does exactly that – install requests-ntlm module.
A great way to have desktop notifications for Python applications is to use Growl. Available for Mac and Windows
Growl for Mac: http://growl.info
Growl for Windows: http://www.growlforwindows.com/
Once installed, you will need the python library gntp (Growl Notification Transport Protocol). https://pypi.python.org/pypi/gntp
Very useful link: How to take data from MySQL and output GeoJSON using Python.