Modified the upload script, think I'm close to valid XML