Olá pessoal.
O eclipse está reclamando se eu coloco a tag attribute acima da tag sequence. Por que isso acontece?
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="venda">
<complexType>
<attribute name="moeda" type="string"/>
<sequence>
<element name="formaDePagamento" type="string"/>
<element name="produtos">
<complexType>
<sequence>
<element name="produto" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="nome" type="string" />
<element name="preco" type="double"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>