combine icon indicating copy to clipboard operation
combine copied to clipboard

XML parsing for React.js to Solid.js conversion

Open rrjanbiah opened this issue 2 years ago • 4 comments

Combine is recommended in https://www.reddit.com/r/rust/comments/t37twl/hey_rustaceans_got_an_easy_question_ask_here_92022/hyycpd6/?utm_source=reddit&utm_medium=web2x&context=3

But, I can't seem to find any XML parsing done using Combine. Is that possible and any comments on that?

rrjanbiah avatar Mar 03 '22 17:03 rrjanbiah

Of course, it's possible as LL(1) parser can represent XML data by parsing tags. But IMO your choice should be over the serde crate as more fitting solution for structs from text conversions and vice versa. Is that appropriate or combine is preferable?

r4v3n6101 avatar Mar 05 '22 13:03 r4v3n6101

@r4v3n6101 Many thanks for your suggestion. Quick glance at serde is promising for the React.js to Solid.js conversion. But, I'm worried that it seems to demand hand coding a lot. Anyway, let me closely check that. Thanks again.

rrjanbiah avatar Mar 05 '22 17:03 rrjanbiah

Can't have examples for any given format :) . But since xml is a common format there already exists parsers for it so I'd first look at using an existing parser https://crates.io/search?q=xml .

Marwes avatar Mar 07 '22 11:03 Marwes

@Marwes Many thanks for your comments and suggestions

rrjanbiah avatar Mar 07 '22 12:03 rrjanbiah