lumeohq / xsd-parser-rs

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

Support for anyAttributes #6

Closed LeonidKrutovsky closed 4 years ago

LeonidKrutovsky commented 4 years ago
<xs:complexType name="NoiseReductionOptions">
    <xs:sequence>
        <xs:element name="Level" type="xs:boolean">
            <xs:annotation>
                <xs:documentation>Indicates whether or not support Level parameter for NoiseReduction.</xs:documentation>
            </xs:annotation>
        </xs:element>
        <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded" />   <!-- first ONVIF then Vendor -->
    </xs:sequence>
    <xs:anyAttribute processContents="lax"/>
</xs:complexType>
LeonidKrutovsky commented 4 years ago
pub struct NoiseReductionOptions {
  level: bool,  // Indicates whether or not support Level parameter for NoiseReduction.  
  any_elements: Vec<AnyElement>,
  any_attributes: HashMap<String, String>,
}