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

XML parsing for React.js to Solid.js conversion #341

Open
rrjanbiah opened this issue Mar 3, 2022 · 4 comments
Open

XML parsing for React.js to Solid.js conversion #341

rrjanbiah opened this issue Mar 3, 2022 · 4 comments

Comments

@rrjanbiah
Copy link

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?

@r4v3n6101
Copy link

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?

@rrjanbiah
Copy link
Author

@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.

@Marwes
Copy link
Owner

Marwes commented Mar 7, 2022

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 .

@rrjanbiah
Copy link
Author

@Marwes Many thanks for your comments and suggestions

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

3 participants