この Excel シートを XML ドキュメントに変換するタスクがあります。
これにより、次のようなファイルが生成されるはずです
<import>
<node action="create" type="document">
<category name="Backlog Archiving">
<attribute name="تاريخ المراسلة">19901101</attribute>
<attribute name="الجهة المرسلة للخطاب">الجهة المرسلة للخطاب</attribute>
<attribute name="رقم المراسلة الخاص بالجهاز">12345</attribute>
<attribute name="رقم الخطاب الخاص بالجهة">000000000 </attribute>
<attribute name="الموضوع المختصر">عروض</attribute>
<attribute name="عنوان الخطاب">عنوان الخطااااااااب</attribute>
<attribute name="كود المراسلة">1990/0011291/LT</attribute>
</category>
</node>
<node action="create" type="document">
<category name="Content Server Categories">
<attribute name="تاريخ المراسلة">19901101</attribute>
<attribute name="الجهة المرسلة للخطاب">الجهة المرسلة للخطاب</attribute>
<attribute name="رقم المراسلة الخاص بالجهاز">12345</attribute>
<attribute name="رقم الخطاب الخاص بالجهة">000000000 </attribute>
<attribute name="الموضوع المختصر">عروض</attribute>
<attribute name="عنوان الخطاب">عنوان الخطااااااااب</attribute>
<attribute name="كود المراسلة">1990/0011291/LT</attribute>
</category>
</node>
</import>
このように生成するためにExcelマッピングで使用されるxsdを記述しようとしました
<xs:element name="import">
<xs:complexType>
<xs:sequence>
<xs:element name="node">
<xs:complexType>
<xs:sequence>
<xs:element name="category">
<xs:complexType>
<xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:element name="attribute" type="xs:string"/>
???
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
しかし、属性と呼ばれるすべての要素でそれを完成させることがわかりません
誰でも助けてくれますか?