     
     /// A parsing error, if any.
     var parsingError: NSError?
+    var parseComplete = false
     
     /// Starts parsing the feed.
     func parse() -> Result {

    }
    
    func parser(_ parser: XMLParser, parseErrorOccurred parseError: Error) {
        self.parsingError = NSError(domain: parseError.localizedDescription, code: -1)
    }
    
}

    {
        // Update the current path along the XML's DOM elements by deleting last component.
        self.currentXMLDOMPath = self.currentXMLDOMPath.deletingLastPathComponent()
        if currentXMLDOMPath.absoluteString == "/" {
            parseComplete = true
            xmlParser.abortParsing()
        }
    }
    
    func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data)
