Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to handle namespaces #70

Open
TheApApp opened this issue Jun 16, 2022 · 0 comments
Open

how to handle namespaces #70

TheApApp opened this issue Jun 16, 2022 · 0 comments

Comments

@TheApApp
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant