lumeohq / xsd-parser-rs

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

Double xmlns for xsd #87

Closed LeonidKrutovsky closed 4 years ago

LeonidKrutovsky commented 4 years ago

In bf-2.xsd file

<xsd:schema
 xmlns="http://www.w3.org/2001/XMLSchema"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"

Now the first value is being taken. I think it's right to take the last one, which will override the previous ones.

        xsd_ns: schema
            .namespaces()
            .iter()
            .find(|a| a.uri() == "http://www.w3.org/2001/XMLSchema")
            .cloned(),