     mediaType.name = "media-type"
     mediaType.stringValue = "application/oebps-package+xml"
     rootfile.addAttribute(mediaType)
-
-
+    
+    
     rootfiles.addChild(rootfile)
     container.addChild(rootfiles)
-
+    
     root.version = "1.0"
     root.isStandalone = true
-
+    
     return root.xmlData(withOptions: Int(XMLNode.Options.nodePrettyPrint.rawValue))
 }
 
-func packageXMLData() -> Data {
+func packageXMLData(withFileList fileList: Array<String>) -> Data {
     let package = XMLElement(name: "package")
     let root = XMLDocument(rootElement: package)
     root.version = "1.0"

    version.name = "version"
    version.stringValue = "1.0"
    container.addAttribute(version)

    let namespace = XMLElement(kind: .attribute)
    namespace.name = "xmlns"
    namespace.stringValue = "urn:oasis:names:tc:opendocument:xmlns:container"
    container.addAttribute(namespace)

    let rootfiles = XMLElement(name: "rootfiles")
    let rootfile = XMLElement(kind: .element, options: .nodeCompactEmptyElement)
    rootfile.name = "rootfile"


if contents.isEmpty == false {
    dump("removing \(contents.count) previous items")
    
    for item in contents{
        try! fm.removeItem(at: item)
    }
