8000 Add namespace usage instructions, add example by vartanbeno · Pull Request #106 · Paligo/xee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add namespace usage instructions, add example #106

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

Merged
merged 3 commits into from
May 2, 2025
Merged

Conversation

vartanbeno
Copy link
Contributor

This PR edits the xee CLI's readme to include instructions on how to use the namespace-related options.

I also added a comprehensive example demonstrating how to work with an XML document in Rust. It includes working with namespaces and shows how to use different XPath functions.

@faassen
Copy link
Collaborator
faassen commented May 1, 2025

The example is cool and I'm going to merge it, but it'd be interesting to discuss the motivations to make the API like this to see what we can learn from that! xee-xpath is designed to allow you to efficiently reuse precompiled XPath expressions over multiple documents. This higher level API in the example wraps all that so some of those advantages are reduced. But I can totally see there being a use case for a higher level API that we expose as well if this makes people's life easier - after all it's similar to what we do with the xee CLI.

@faassen faassen merged commit 095af08 into Paligo:main May 2, 2025
1 check passed
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
0