我已经检查了相关问题,并且一直在寻找解决这个问题的方法,但我想我找不到补救措施。这是我的 xml 文件的代码
<?xml version="1.0" encoding="UTF-8"?>
<game xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="game.xsd">
<info>
<name>"Mensch, aergere dich nicht!"</name>
<description>"Mensch ärgere dich nicht ist ein Gesellschaftsspiel für zwei bis sechs Personen."
<i>"Das Spielbrett ist in der Einzelausgabe doppelseitig bedruckt"
<b> "sodass Mensch ärgere dich nicht für maximal sechs Spieler"</b>
</i>
<b>"auf der einen und maximal vier Spieler auf der anderen Seite spielbar ist."
</b>
</description>
<started>2012-09-24-06:00</started>
<players number="2">
<screenname player="1">"Onat Derebek"</screenname>
<screenname player="2">"Kutay Derebek"</screenname>
</players>
<rounds>1</rounds>
<winner player="1"></winner>
</info>
<moves>
<!-- Erste figuren -->
<roll player="1">6</roll>
<piece player="1" nr="1" field="26"/>
<roll player="2">6</roll>
<piece player="2" nr="5" field="36"/>
<roll player="1">6</roll>
<piece player="1" nr="1" field="32"/>
</moves>
这是我的 xsd 文件的代码
<element name="game">
<complexType>
<sequence>
<element name="info" type="tns:infoType" maxOccurs="1" minOccurs="1"></element>
<element name="moves" type="tns:movesType" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</element>
<complexType name="infoType">
<sequence>
<element name="name" type="string" maxOccurs="1"
minOccurs="0">
</element>
<element name="description" type="tns:descriptionType"
maxOccurs="1" minOccurs="0">
</element>
<element name="started" type="dateTime" maxOccurs="1"
minOccurs="0">
</element>
<element name="players" minOccurs="0">
<complexType>
<sequence>
<element name="screenname" minOccurs="0" maxOccurs="4">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="player"
type="tns:playerType" use="required">
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
<attribute name="number" type="tns:playerType" use="required"></attribute>
</complexType>
</element>
<element name="rounds" type="int" minOccurs="0"></element>
<element name="winner" minOccurs="0">
<complexType>
<attribute name="player" type="tns:playerType" use="required"></attribute>
</complexType>
</element>
</sequence>
</complexType>
<complexType name="descriptionType" mixed="true">
<choice maxOccurs="unbounded" minOccurs="1">
<element name="i" type="tns:descriptionType"></element>
<element name="b" type="tns:descriptionType"></element>
</choice>
</complexType>
<complexType name="movesType">
<choice minOccurs="0" maxOccurs="unbounded">
<element name="roll" nillable="false">
<complexType mixed="false">
<simpleContent>
<extension base="tns:simpleIntType">
<attribute name="player" use="required">
<simpleType>
<restriction base="int">
<minInclusive value="1"></minInclusive>
<maxInclusive value="4"></maxInclusive>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
</element>
<element name="piece">
<complexType>
<attribute name="nr" use="required">
<simpleType>
<restriction base="int">
<minInclusive value="1"></minInclusive>
<maxInclusive value="16"></maxInclusive>
</restriction>
</simpleType>
</attribute>
<attribute name="player" use="required">
<simpleType>
<restriction base="int">
<minInclusive value="1"></minInclusive>
<maxInclusive value="4"></maxInclusive>
</restriction>
</simpleType>
</attribute>
<attribute name="field" use="required">
<simpleType>
<restriction base="int">
<minInclusive value="1"></minInclusive>
<maxInclusive value="72"></maxInclusive>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
</choice>
</complexType>
<simpleType name="simpleIntType">
<restriction base="int">
<maxInclusive value="6"></maxInclusive>
<minInclusive value="1"></minInclusive>
</restriction>
</simpleType>
<simpleType name="playerType">
<restriction base="int">
<minInclusive value="1"></minInclusive>
<maxInclusive value="4"></maxInclusive>
</restriction>
</simpleType>
我需要在一小时内解决这个问题,因为我必须为大学项目上传