Unable to access XML Metadata record