Added xml mag and jagged arrays