SwiftyXMLParser icon indicating copy to clipboard operation
SwiftyXMLParser copied to clipboard

how to handle namespaces

Open TheApApp opened this issue 2 years ago • 0 comments

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?

TheApApp avatar Jun 16 '22 15:06 TheApApp