Commiting code for DOMparser