Jump to content
Jesus

xsd para formato xmlns:msg="urn:netdocs:schemas:message"

Recommended Posts

Jesus

Boa tarde,

Gostaria de saber se alguém tem o XSD esquema , com o qual se pode gerar este formato xml que utiliza a saphety

 

<?xml version="1.0" encoding="iso-8859-1"?>
<msg:message id="" creationDateTime="2020-01-31T00:00:00" xmlns:msg="urn:netdocs:schemas:message">
  <sender>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
  </sender>
  <receiver>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
  </receiver>
<doc:invoice documentDate="2020-01-30" purpose="ORIGINAL" documentNumber="" schemaVersion="1.0" function="ADD" xmlns:doc="urn:netdocs:schemas:document">
  <binaryDocumentFormat contentType="application/pdf" name="pdf"></binaryDocumentFormat>
  <documentLocation>
    <locationURL></locationURL>
  </documentLocation>
  <seller>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
    <addressInformation>
      <address></address>
      <city></city>
      <postalCode>
        <zip></zip>
        <area></area>
      </postalCode>
      <countryCode></countryCode>
    </addressInformation>
    <vatNumber></vatNumber>
    <commercialRegistrationNumber></commercialRegistrationNumber>
    <commercialRegistrationLocation></commercialRegistrationLocation>
    <socialCapital></socialCapital>
  </seller>
  <buyer>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
    <addressInformation>
      <address></address>
      <city></city>
      <postalCode>
        <zip></zip>
        <area></area>
      </postalCode>
      <countryCode></countryCode>
    </addressInformation>
    <vatNumber></vatNumber>
  </buyer>
  <billTo>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
    <addressInformation>
      <address></address>
      <city></city>
      <postalCode>
        <zip></zip>
        <area></area>
      </postalCode>
      <countryCode></countryCode>
    </addressInformation>
    <vatNumber></vatNumber>
  </billTo>
  <shipTo>
    <id entityIdTypeCoded="VAT"></id>
    <name></name>
    <addressInformation>
      <address></address>
      <countryCode></countryCode>
    </addressInformation>
  </shipTo>
  <additionalDate type="CUSTOMERAVAILABLE"></additionalDate>
  <additionalDate type="DUE"></additionalDate>
  <currencyCode></currencyCode>
  <PeriodoDataInicial></PeriodoDataInicial>
  <PeriodoDataFinal></PeriodoDataFinal>
  <lineItem number="1">
    <reference type="CONTRACTCONSUMERID"></reference>
    <reference type="COMPROMISSO" referencedDocumentDate="" referencedDocumentId="" lineId="1" />
    <description></description>
    <comment></comment>
    <comment />
    <quantity>
      <value></value>
      <unitOfMeasure />
    </quantity>
    <netUnitPrice></netUnitPrice>
    <vatPercentage></vatPercentage>
    <vatAmount></vatAmount>
    <taxableAmount></taxableAmount>
    <netAmount></netAmount>
  </lineItem>
   <vatSummary>
    <vatPercentage></vatPercentage>
    <vatAmount></vatAmount>
    <taxableAmount></taxableAmount>
  </vatSummary>
  <vatSummary>
    <vatPercentage></vatPercentage>
    <vatAmount>.</vatAmount>
    <taxableAmount>.</taxableAmount>
  </vatSummary>
  <totalVatAmount>.</totalVatAmount>
  <totalTaxableAmount>.</totalTaxableAmount>
  <totalNetAmount>.</totalNetAmount>
  <totalGrossAmount>.</totalGrossAmount>
  <totalPayableAmount>.</totalPayableAmount>
</doc:invoice></msg:message>

 

Share this post


Link to post
Share on other sites
M6

Podes tentar usar ferramentas de XML para fazer engenharia reversa e gerares o XSD para esse XML.
Atenção que poderá ter lacunas, por exemplo, opções que não estão presentes nesse documento e como tal não poderão ser adivinhados.

Podes sempre pedir essa informação a quem produz o XML.


10 REM Generation 48K!
20 INPUT "URL:", A$
30 IF A$(1 TO 4) = "HTTP" THEN PRINT "400 Bad Request": GOTO 50
40 PRINT "404 Not Found"
50 PRINT "./M6 @ Portugal a Programar."

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.