、ここで私が持っているものです:s4s-elt-invalid-content.1:コンテンツが無効です。要素「属性が」、無効な見当違いである、またはあまりにも頻繁に発生し
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/Elizabeth schema"
xmlns:elz="http://www.example.org/Elizabeth_schema" elementFormDefault="qualified">
<xs:element name ="year">
<xs:complexType mixed = "true">
<xs:sequence>
<xs:element name="entry">
<xs:complexType mixed ="true">
<xs:simpleContent>
<xs:attribute name ="when" type = "xs:string"/>
<xs:attribute name = "place" type = "xs:string"/>
<xs:element name = "items" type = "xs:string"/>
<xs:element name = "characters">
<xs:complexType>
<xs:attribute name ="character" type = "xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name = "eventscollection">
<xs:complexType>
<xs:attribute name = "type" type = "xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name ="entrytxt">
<xs:complexType>
<xs:any minOccurs = "0"/>
<xs:anyAttribute minOccurs="0"/>
</xs:complexType>
</xs:element>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
私はスキーマでXLSを指摘していません私は最初にスキーマを稼働させたいからです。
S4S-ELT-無効content.1: '#AnonType_entryyear' の内容が無効 である私のIDEは私にバグを投げています。要素 '属性'が無効であるか、置き忘れられているか、またはあまりにも多く発生しています 。
11行目では、要素「エントリ」の下に最初の属性を導入しています。私は10行目( "simpleContent")を削除しても同じエラーが出るが、13行目で "entry"の下の最初の要素を紹介することがわかった。
私はこれを初心者としていますが、インターネット上で何か気になってしまいましたが、私のコードで何が起きているのか分からないようです。何かご意見は?
はありがとうございました。私は本当に助けに感謝します。 – Danielle