Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Build a variable of the XML returned
- let smartGroupXML = try XML.parse(data!)
- // Determine whether the returned group is a smart group
- if let isSmart = smartGroupXML.computer_group.is_smart.text {
- print("Is smart \(isSmart)") // Is smart true
- }
- let criteria = smartGroupXML.computer_group.criteria.text
- print(criteria) // nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement