     public func parser(_ parser: XMLParser, foundCharacters string: String) {
         let string = string.trimmingCharacters(in: .whitespacesAndNewlines)
         if !string.isEmpty && string != "\"" {
-            currentNode?.values.append(string)
+            if currentNode?.values.count == 0 || currentNodeIsArray {
+                currentNode?.values.append(string)
+            } else {
+                if let first = currentNode?.values.first {
+                    currentNode?.values[0] = first+string
+                }
+            }
         }
     }
     

        let elementName = elementName.upperFirst()
        let node = XMLNode(elementName: elementName)
        node.attributes = attributeDict
        
        if nodeTree == nil {
            nodeTree = node

    
    private var lastElementName: String?
    
    private var currentNodeIsArray = false
    
    public init(data: Data) {
        self.parser = XMLParser(data: data)
        super.init()
