Skip to content

Use schema  #56

@digitalheir

Description

@digitalheir

Suppose we have the following XML:

 <root>
     <a>
         <b />
      </a>
      <a>
         <b />
         <b />
      </a>
 </root>

Nori will create the following hash:

{"root"=>{"a"=>[{"b"=>nil}, {"b"=>[nil, nil]}]}}

If we have the following document schema:

 <xsd:complexType name="a">
    <xsd:sequence>
        <xsd:element name="b" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
    </xsd:sequence>
</xsd:complexType>

element ['root']['a'][0]['b'] should return a single-valued array, but there is no way to specify this to Nori.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions