XML reader and base classes working