thingol wrote:Hum, não sei se isto aqui está certo: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:obj="http://dominio.com/xsd" targetNamespace="http://dominio.com/xsd" elementFormDefault="qualified"> <xs:complexType name="Pessoa"> <xs:sequence> <xs:element name="nome" type="xs:string"/> <xs:element name="telefone" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="PessoaFisica"> <xs:complexContent> <xs:extension base="obj:Pessoa"> <xs:sequence> <xs:element name="cpf" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:schema> <?xml version="1.0" encoding="UTF-8"?> <PessoaFisica xsi:type="xsd:PessoaFisica" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://dominio.com/xsd Basic.xsd"> <nome>Gabriel Oliveira</nome> <telefone>36589236</telefone> <cpf>65687893213</cpf> </PessoaFisica>