Skip to content

Conversation

@pvgenuchten
Copy link
Contributor

@pvgenuchten pvgenuchten commented Nov 4, 2025

found an issue in a xml with a comment before srv:service-identification
suggestion to remove any comments before parsing

also added a new test case, pre (fails) and post (succeeds) PR

@tomkralidis
Copy link
Member

@pvgenuchten issue or test case to demonstrate/reproduce the problem?

@pvgenuchten
Copy link
Contributor Author

pvgenuchten commented Nov 4, 2025

Test case has been added (comment before md-identification, resolves #1026

  <gmd:identificationInfo>
    <!-- ## any comment here, fails the xml parsing, because the first element is taken, which is the comment ## -->
    <srv:SV_ServiceIdentification uuid="a65c20b3-9f94-3bad-a307-a61021331d8c">

@tomkralidis tomkralidis merged commit 3a3d757 into geopython:master Nov 4, 2025
2 checks passed
@pvgenuchten
Copy link
Contributor Author

Not sure if comments are used by owslib anywhere, removed all of them in case similar code is used in other places causing this error

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

Successfully merging this pull request may close these issues.

2 participants