added methods for extracting object/profile XML