Adding newer xmlreader code to it's own file so that it can be turned and off until remaining bugs are fixed