Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code/dte: add XML schemas of "factura electrónica" #12

Closed
wants to merge 2 commits into from

Conversation

yaselc
Copy link
Contributor

@yaselc yaselc commented Mar 12, 2021

Official XML schemas of DTE (Documento Tributario Electrónico)

Includes a README file by @glarrain

All the files have been preserved as they were; schemas are in their original text encoding (ISO-8859-1) and have not been modified in the slightest way.

Sources (2021-03-12):
http://www.sii.cl/factura_electronica/schema_dte.zip

Ref #11

@yaselc yaselc added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 12, 2021
@yaselc yaselc self-assigned this Mar 12, 2021
@yaselc yaselc marked this pull request as draft March 12, 2021 19:41
@yaselc yaselc force-pushed the feature/docs/dte/add-xml-schemas branch 6 times, most recently from 8af111b to 2c35579 Compare March 15, 2021 11:24
@yaselc yaselc requested review from jtrh and glarrain March 15, 2021 11:24
@yaselc yaselc marked this pull request as ready for review March 15, 2021 11:24
@yaselc yaselc force-pushed the feature/docs/dte/add-xml-schemas branch from 2c35579 to 36bf009 Compare March 15, 2021 12:32
@glarrain
Copy link
Member

Idea:

  • src/code/factura_electronica/2011-05-30-schema_dte-vX.zip
  • src/code/factura_electronica/2011-05-30-schema_dte-vX/schema_dte/*.xsd

What do you think @yaselc @jtrh ?

@yaselc
Copy link
Contributor Author

yaselc commented Mar 15, 2021

  • src/code/factura_electronica/2011-05-30-schema_dte-vX.zip
  • src/code/factura_electronica/2011-05-30-schema_dte-vX/schema_dte/*.xsd

@glarrain I'm not totally sure of the source of the information 2011-05-30 and vX, both are taken from SII?

Should we use a directory for each domain (DTE, RCV, RTC) or a common directory?

@glarrain
Copy link
Member

@glarrain I'm not totally sure of the source of the information 2011-05-30 and vX, both are taken from SII?

  • 2011-05-30 taken from the last updated timestamp of the files in the ZIP file
  • vX I added it just to indicate that the file does not have a version number/ID. Perhaps it is not useful and just adds noise.

Should we use a directory for each domain (DTE, RCV, RTC) or a common directory?

You are right. I thought the ZIP contained the schemas of several domains but now I see it does not. Then, what do you think about this? src/code/dte/2011-05-30-schema_dte/schema_dte/*.xsd

@yaselc
Copy link
Contributor Author

yaselc commented Mar 15, 2021

  • 2011-05-30 taken from the last updated timestamp of the files in the ZIP file

We intend to apply two updates to the XML schema but from different sources. What would happen to this prefix in that case, does it keep the date of the original file or is it updated with the date of the alternative source?

@yaselc yaselc force-pushed the feature/docs/dte/add-xml-schemas branch from 36bf009 to a10c905 Compare March 15, 2021 23:23
@yaselc yaselc changed the title docs/dte: add XML schemas of "factura electrónica" code/dte: add XML schemas of "factura electrónica" Mar 15, 2021
@yaselc yaselc force-pushed the feature/docs/dte/add-xml-schemas branch from a10c905 to a983f79 Compare March 15, 2021 23:34
Official XML schemas of DTE (Documento Tributario Electrónico)

Includes a README file by @glarrain

All the files have been preserved as they were; schemas are in their
original text encoding (ISO-8859-1) and have not been modified in the
slightest way.

Sources (2021-03-12):
http://www.sii.cl/factura_electronica/schema_dte.zip
Update schemas from a different resource available on SII's website,
the Official XML schemas of AEC (Archivo Electrónico de Cesión)

Source: Formato XML del Archivo Electrónico de Cesión at
https://www.sii.cl/factura_electronica/schema_cesion_201912.zip
Retrieved at 2021-03-12
@yaselc yaselc force-pushed the feature/docs/dte/add-xml-schemas branch from a983f79 to 6b7fa2f Compare March 22, 2021 12:10
@jtrh
Copy link
Contributor

jtrh commented Mar 22, 2021

what do you think about this? src/code/dte/2011-05-30-schema_dte/schema_dte/*.xsd

👍

@jtrh
Copy link
Contributor

jtrh commented Mar 22, 2021

  • 2011-05-30 taken from the last updated timestamp of the files in the ZIP file

We intend to apply two updates to the XML schema but from different sources. What would happen to this prefix in that case, does it keep the date of the original file or is it updated with the date of the alternative source?

I'm not sure whether I'm understanding you correctly, @yaselc. Did you mean something like "add new revision of EnvioDTE_v10.xsd obtained from something_else_schemas.zip"?

@glarrain
Copy link
Member

@yaselc ?

@glarrain
Copy link
Member

@yaselc please finish PR #12 so then you can finish this one

@glarrain glarrain marked this pull request as draft March 23, 2021 12:28
@yaselc
Copy link
Contributor Author

yaselc commented Mar 23, 2021

  • 2011-05-30 taken from the last updated timestamp of the files in the ZIP file

We intend to apply two updates to the XML schema but from different sources. What would happen to this prefix in that case, does it keep the date of the original file or is it updated with the date of the alternative source?

I'm not sure whether I'm understanding you correctly, @yaselc. Did you mean something like "add new revision of EnvioDTE_v10.xsd obtained from something_else_schemas.zip"?

@jtrh sorry for the mistake, but your right, it would actually be a single update for the DTE_v10.xsd and SiiTypes_v10.xsd XSD files, taken from schema_cesion_201912.zip.

@yaselc
Copy link
Contributor Author

yaselc commented Mar 23, 2021

@yaselc please finish PR #12 so then you can finish this one

@glarrain I think your comment was aimed at another PR. Also, I applied the changes you suggested earlier in this PR, have you been able to look at it?

@yaselc yaselc closed this Mar 25, 2021
@yaselc yaselc deleted the feature/docs/dte/add-xml-schemas branch March 25, 2021 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants