{"action":"closed","issue":{"url":"https://api.github.com/repos/kodlian/AlamofireXMLRPC/issues/3","labels_url":"https://api.github.com/repos/kodlian/AlamofireXMLRPC/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kodlian/AlamofireXMLRPC/issues/3/comments","events_url":"https://api.github.com/repos/kodlian/AlamofireXMLRPC/issues/3/events","html_url":"https://github.com/kodlian/AlamofireXMLRPC/issues/3","id":120623063,"number":3,"title":"Problem with Iterate through Arrays","user":{"login":"dastom","id":7900005,"avatar_url":"https://avatars.githubusercontent.com/u/7900005?v=3","gravatar_id":"","url":"https://api.github.com/users/dastom","html_url":"https://github.com/dastom","followers_url":"https://api.github.com/users/dastom/followers","following_url":"https://api.github.com/users/dastom/following{/other_user}","gists_url":"https://api.github.com/users/dastom/gists{/gist_id}","starred_url":"https://api.github.com/users/dastom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dastom/subscriptions","organizations_url":"https://api.github.com/users/dastom/orgs","repos_url":"https://api.github.com/users/dastom/repos","events_url":"https://api.github.com/users/dastom/events{/privacy}","received_events_url":"https://api.github.com/users/dastom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-06T10:09:33Z","updated_at":"2015-12-16T16:27:02Z","closed_at":"2015-12-16T16:27:02Z","body":"If you iterate through the Arrays in a very big Response (in my case over 300 arrays you get after the second \"child array\" only 300 copies of one but not 300 different arrays.\r\nLooks as if only the first one is simply copied 300 times.\r\n\r\nThis is the function i use:\r\n\r\n    func iterateNode(currentNode: [XMLRPCNode], durchgang: Int) {\r\n        \r\n        print(\"----- Anfang des Nodes: \\(durchgang) -----\")\r\n\r\n        for everynode in currentNode {\r\n\r\n            if let anzahl = everynode.count {\r\n                print(anzahl)\r\n            } else\r\n            {\r\n                print(\"keine Unterknoten zum zählen\")\r\n            }\r\n            \r\n            \r\n            if let dict = everynode.dictionary {\r\n              \r\n                print(\"Anzahl der Einträge: \\(dict.count)\")\r\n               \r\n                \r\n                for everdict in dict {\r\n                    let dictString = everdict.0\r\n                    \r\n                    if let value = everdict.1.string {\r\n                        print(\"\\(dictString): \\(value)\")\r\n                        \r\n                    }\r\n                    \r\n                }\r\n                \r\n                \r\n            }\r\n        \r\n            if everynode.count > 0 {\r\n                let neueAnzahl = durchgang + 1\r\n                print(\"--- Ende des Nodes: \\(durchgang) ----\")\r\n                let testnode = everynode.array!\r\n                self.iterateNode(testnode, durchgang: neueAnzahl)\r\n                \r\n            }\r\n            else {\r\n                \r\n                print(\"--- Ende des Nodes ----\")\r\n            }\r\n            \r\n        }\r\n    \r\n    } "}}