E
E
eRKa2021-02-04 16:54:25
Java
eRKa, 2021-02-04 16:54:25

How to generate type list of lists?

I want to generate a field with type List<List<String>>
Tried like this

<xs:element name="splitContours" type="ns1:contourGroup" maxOccurs="unbounded"/>

<xs:complexType name="contourGroup">
    <xs:annotation>
        <xs:documentation>Группа контуров</xs:documentation>
    </xs:annotation>
    <xs:sequence>
        <xs:element name="contours" type="xs:string" maxOccurs="unbounded">
            <xs:annotation>
                <xs:documentation>Контуры</xs:documentation>
            </xs:annotation>
        </xs:element>
    </xs:sequence>
</xs:complexType>

But it turns out, an array of objects with the contours field, from which I already get an array of strings. A search for this type of information turned up nothing. Is it even possible to describe multidimensional arrays in xsd?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question