Now with working itemxml generation