Implemented namespace lookup for XML fragment parsing