XML namespace handler implementation and tests