SwiftyXMLParser
SwiftyXMLParser copied to clipboard
how to handle namespaces
I have an rdf XML that uses namespaces. Can this be handled? For example
<rdf:tag xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> rdf:tag2SomeValue</rdf:tag2> </rdf:tag>
I understand that I can use xml = xml.parser(str) and then access via xml["rdf:tag2] but I don't believe you can use the xml.rdf:tag2 notation. How would I be able to access using the second approach?