lumeohq / xsd-parser-rs

A xsd/wsdl => rust code generator written in rust
Apache License 2.0
96 stars 34 forks source link

Support group element #93

Open malte-v opened 4 years ago

malte-v commented 4 years ago

I think the group element should be supported: https://www.w3schools.com/xml/el_group.asp

victor-soloviev commented 4 years ago

Sure!

We believe that the parser should support all the types. As for the group element, it will be supported once we finish our work in the xsd_model branch, in which we are working on a new approach, and merge it into master. See #99 for some context.

You can help us by providing the XSD file with the group element that you are trying to parse so we can test on it.

Matthias-Fauconneau commented 4 years ago

Hi,

It looks like xsd-parser would be a good solution to deserialize MusicXML https://github.com/w3c/musicxml/blob/gh-pages/schema/musicxml.xsd What is the progress on this issue ? can I help ?

P.S: How does rust-xml-schema compare to this ?

wt commented 1 year ago

Has the xsd_model branch been merged into master? It looks like it hasn't been updated since 2020. As such I have started working on group support.

I also see the nonnegative number type. However, I need a nonnegative or "unbounded" type. Is there an appropriate type for that that already exists, or should I build a new type?

FireyFly commented 1 year ago

@wt did you end up getting anywhere wrt xs:group support? (Or did you decide on otherwise considering the general.. lack of feedback from maintainers? it does seem pretty quiet around here, wouldn't blame you..)

It'd come in handy for a side project I'm considering/messing around with a bit, and in general having a decent xsd->codegen tool for Rust seems like it'd pay off down the line.. I might look into it otherwise, though no promises.

wt commented 1 year ago

I redirected onto https://github.com/tafia/quick-xml/pull/545. I need to finish up that change. The fact that this crate is unpublished and has dependencies that conflict in name with published crates turned me off of this one a bit.