Initial version of generator refactoring
Convert from SimpleXML to DOMElement