Add namespace tolerance to element retrieval