Safety commit.
Starting to implement xml parsing/writing. This version is BROKEN!