Added methods to set package items (string-based or xml-based)