Generating resource attributes in XML