Find version number of Comprobante element or ID number for other document types.

Namespace:  FirmaSAT
Assembly:  diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.50.0.29531

Syntax

C#
public static int XmlReceiptVersion(
	string xmlFile
)
Visual Basic (Declaration)
Public Shared Function XmlReceiptVersion ( _
	xmlFile As String _
) As Integer

Parameters

xmlFile
Type: System..::.String
Name of XML file

Return Value

Version number or ID number, or a negative error code.
  • 40 = Comprobante document with Version="4.0"
  • 33 = Comprobante document with version="3.3"
  • 1010/1020 = Retenciones document with Version="1.0"/"2.0"
  • 2011/2013 = CatalogoCuentas document with Version="1.1"/"1.3"
  • 2111/2113 = BalanzaComprobacion document with Version="1.1"/"1.3"
  • 2211/2213 = PolizasPeriodo document with Version="1.1"/"1.3"
  • 2312/2313 = AuxiliarFolios document with Version="1.2"/"1.3"
  • 2411/2413 = AuxiliarCtas document with Version="1.1"/"1.3"
  • 2511 = SelloDigitalContElec document with Version="1.1"
  • 4011 = ControlesVolumetricos document with Version="1.1"

Examples

CopyC#
Console.WriteLine(Sat.XmlReceiptVersion("cfdv40-ejemplo.xml"));  // 40

See Also