Object + XML generation