次のxmlスキーマを試します
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://your_namespace"
xmlns="http://your_namespace">
<xsd:element name="person">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="lastname" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
そして私はそれをこのドキュメントに割り当てます
<?xml version="1.0"?>
<person xmlns="http://your_namespace"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://your_namespace
C:\Program%20Files%20(x86)\Wattle%20Software\XMLwriter%202\Projects\ex.xsd">
<firstname>aaa</firstname>
<lastname>bbb</lastname>
</person>
しかし、予期しない要素の最初の名前に対して常にエラーが発生します