     }
 }
 
-class XFPReview {
+class XFPReview: CustomStringConvertible {
     var title: String?
     var author: String?
-    var contect: String?
+    var content: String?
+    var rating: Int?
+    var version: String?
+    
+    var description: String {
+        return "REVIEW,\n \(title),\n \(content),\n \(author),\n \(rating)"
+    }
 }
 
 protocol CHFParserDelegate: class {

                didEndElement elementName: String,
                namespaceURI: String?,
                qualifiedName qName: String?) {
        print("End: ", elementName)

        // If the current XML elements name is 'description' and it contains HTML content
        // (There's got to be a better way to detect HTML right?...)
        if currentContent.contains("<") && elementName == "content" {
        
            // Convert the entire HTML doc to an AttributedString and then back again to string to strip away all HTML.
            currentContent = currentContent.unescape() + "\n"
            delegate?.feed += currentContent

//        }
        } else if elementName == "title" {
            delegate?.feed += currentContent + "\n"
        } else if elementName == "name" {
            delegate?.feed += "NAME : " + currentContent + "\n"
        }
    }
    
    func parserDidEndDocument(_ parser: XMLParser) {
        self.delegate?.parsingDidEnd()
    }
    

class CHFParser: NSObject, XMLParserDelegate {
    
    private var currentContent: String = String()
    
    private var currentReview: XFPReview?
    
    weak var delegate: CHFParserDelegate?
    
