Functions to create define.xml documents and metadata.
write_define()
Creates a define XML document
write_metadata()
Creates define XML metadata