Avi's code samples to read and write xml without using 3rd party jars.