http://www.ibm.com/developerworks/library/os-xmldomphp/