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

XML namespace parse overriding or handling multiple namespaces inside one class #4

Open
ronaldtse opened this issue May 22, 2024 · 0 comments

Comments

@ronaldtse
Copy link

Some XML namespaces are versioned, based on the same prefix. In this case, when encountering a more generic prefix, the parser should still allow parsing:

e.g.
The latest OGC GML namespace is xmlns:gml="http://www.opengis.net/gml/3.2", but there are many who use xmlns:gml="http://www.opengis.net/gml".

There should be a way to override the namespace in parsing instead of gsubing the content prior to parse?

The workaround right now is:

xml_content.gsub('xmlns:gml="http://www.opengis.net/gml"', 'xmlns:gml="http://www.opengis.net/gml/3.2"')
@ronaldtse ronaldtse changed the title XML namespace parse overriding XML namespace parse overriding or handling multiple namespaces inside one class May 25, 2024
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