Is it possible to generate the XSD file from XML?

Asked

Viewed 586 times

2

Doubt is how to generate the file .xsd from the xml ?
I was analyzing this tutorial C# - Basic XML Operations and it doesn’t say how.
It is possible ?

XML

<?xml version="1.0" encoding="utf-8" ?>
<arquivoxml>
<SinteseCadastral>
  <Documento>string</Documento>
  <Nome>string</Nome>
  <NomeMae>string</NomeMae>
  <NomeFantasia>string</NomeFantasia>
</SinteseCadastral>
<TotalOcorrencias>int</TotalOcorrencias>
<ValorTotalOcorrencias>string</ValorTotalOcorrencias>
<AlertaDocumentos>
  <NumeroMensagem>string</NumeroMensagem>
  <TotalMensagens>string</TotalMensagens>
  <TipoDocumento>string</TipoDocumento>
  <NumeroDocumento>string</NumeroDocumento>
  <MotivoOcorrencia>string</MotivoOcorrencia>
  <DataOcorrencia>string</DataOcorrencia>
  <TelefonesContato>
    <Telefone>string</Telefone>
  </TelefonesContato>
  <TelefonesContato>
    <Telefone>string</Telefone>
  </TelefonesContato>
  <Mensagem>string</Mensagem>
</AlertaDocumentos>
<PendenciasInternas>
</arquivoxml>
  • Has as a reference for those who do not know what is xsd?

  • 1

    I don’t think you can not "generate", in case it is you who should write and create the XSD definitions for your xml.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.