fill pubObject with content from xml