progval / rust-xml-schema

[WIP] (Self-generating) XML parser generator based on XML schemas.
GNU Affero General Public License v3.0
28 stars 3 forks source link

Fails to generate JUnit schema #1

Open Kaned1as opened 5 years ago

Kaned1as commented 5 years ago

Schema source: link

Output:

$ ./target/release/gen JUnit.xsd
// Input: "JUnit.xsd"
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:345:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
progval commented 5 years ago

I just fixed this particular error; but now it's failing with "not yet implemented: simpleContent".

Unfortunately, despite its name, simpleContent is a big thing to implement. So it will take some time for me to get it working

Kaned1as commented 5 years ago

Quickly looked through simpleContent here, now I get it, XSD is a very complex beast.

progval commented 5 years ago

I just realized that I got the naming completely wrong, so I have to refactor a large part of the code. :/