You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: