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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Array? #105

Open
bpbp-boop opened this issue Jun 22, 2020 · 1 comment
Open

Add support for Array? #105

bpbp-boop opened this issue Jun 22, 2020 · 1 comment

Comments

@bpbp-boop
Copy link

Hello! Thank you for this library 馃檪

https://cwmp-data-models.broadband-forum.org/cwmp-1-2.xsd
I am trying to generate code from the above XSD which references <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>

downloading the SOAP encoding xsd and running I think the issue is the group/Array but I am not sure.

The full error is:

$ ./target/debug/xsd-parser --input soap-encoding.xsd --output soap-encoding.
rs
thread 'main' panicked at 'internal error: entered unreachable code: Unsupported node:
 Element { tag_name: {http://www.w3.org/2001/XMLSchema}group, attributes: [Attribute { name: name, value: "Array" }], namespaces: [Namespace { name: Some("xs"), uri: "http://www.w3.org/2001/XMLSchema" }, Namespace { name: Some("tns"), uri: "http://schemas.xmlsoap.org/soap/encoding/" }] }
parent = Some(Element { tag_name: {http://www.w3.org/2001/XMLSchema}schema, attributes: [Attribute { name: targetNamespace, value: "http://schemas.xmlsoap.org/soap/encoding/" }], namespaces: [Namespace { name: Some("xs"), uri: "http://www.w3.org/2001/XMLSchema" }, Namespace { name: Some("tns"), uri: "http://schemas.xmlsoap.org/soap/encoding/" }] })
', xsd-parser/src/parser/node_parser.rs:41:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Thanks again for working on this library.

@koolquark
Copy link

Hi,

Encountered same error ( for same soap-encoding.xsd ) , I am including full stack trace

./target/debug/xsd-parser  -i ../data_models/encoding.xsd   -o ../gen_code/encoding.rs
rustc --version
rustc 1.62.0 (a8314ef7d 2022-06-27)
commit d8dd37e2069bf1b1366f19cb3dbd0e21d9f49653

encoding.xsd
encoding_xsd_fail.txt

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants