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

Simple to_map(xmlElement) should be made available #46

Open
vanjabucic opened this issue Mar 8, 2017 · 0 comments
Open

Simple to_map(xmlElement) should be made available #46

vanjabucic opened this issue Mar 8, 2017 · 0 comments

Comments

@vanjabucic
Copy link

Need: quickly parse (into map) xml block at a given root without knowing in advance what the exact structure is.

Was easy to do in Ruby by using .each iterators and adding element names and content to maps, but I fail to see how that can be currently done with sweet_xml. All examples assume predefined xpaths.

I have a simple working code that traverses a raw entity and recursively extracts elements, text and attributes into a usable map but did not want to submit it if such feature is already available in some form.

Is there such a feature, and if not, are you open to adding it?

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