Basic outline for XML parsing of objects