RaptureXML icon indicating copy to clipboard operation
RaptureXML copied to clipboard

Swift and RaptureXML

Open mdino opened this issue 8 years ago • 0 comments

In Bridge file add #import "RXMLElement.h"

var rootXML = RXMLElement.elementFromXMLFile("players.xml") rootXML.attribute("year") var rxmlPlayers = rootXML.child("players") var rxmlIndividualPlayers = rxmlPlayers.children("player")

rootXML.iterate("players.player", usingBlock: { e in print(e.atribute("name")) });

Works fine.

mdino avatar Sep 05 '16 15:09 mdino