translated xml parsing example to Swift, not as Swift-like as I'd wish