Added XMLFactory and it's unit tests

Fixed an error where the use of double quotes and the xml closing tag (?>) was causing PHP to close instead.