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

Implement ends-with in xmerl #8145

Open
lessless opened this issue Feb 17, 2024 · 0 comments
Open

Implement ends-with in xmerl #8145

lessless opened this issue Feb 17, 2024 · 0 comments
Labels
enhancement team:PS Assigned to OTP team PS

Comments

@lessless
Copy link

lessless commented Feb 17, 2024

Is your feature request related to a problem? Please describe.
I want to be able to locate <loc> entries that ends with .xml

Describe the solution you'd like
I hope xmerl can implement ends-with according to the XPath2 spec https://www.w3.org/2005/xpath-functions/

Describe alternatives you've considered
/urlset/url[loc[not(substring(., string-length(.) - 3) = '.xml')]]/loc/text() but substring is also not implemented

Thanks!

@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants