Added ability to deserialize metadata from perimeta xml.