marinofaggiana 5 年之前
父節點
當前提交
1c633595a7
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      iOSClient/Networking/NCCommunication.swift

+ 4 - 2
iOSClient/Networking/NCCommunication.swift

@@ -89,8 +89,10 @@ class NCCommunication: NSObject {
                 
                 if let data = response.data {
                     let xml = XML.parse(data)
-                    let numberOfHits = xml.ResultSet.Result.Hit.all?.count
-                    
+                    let elements = xml["d:multistatus", "d:response"]
+                    for element in elements {
+                        print(element["d:href"].text)
+                    }
                     print("success")
 
                 }