Schema LceEnvioLibros_v10.xsd


element LceEnvioLibros
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoEnvioLibros ds:Signature LCE
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Envio de Libros Contables Electronicos
source
<xs:element name="LceEnvioLibros">
  <xs:annotation>
    <xs:documentation>Envio de Libros Contables Electronicos</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoEnvioLibros">
        <xs:annotation>
          <xs:documentation>Documento de Envio de LCE</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutEnvia" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT que envia los LCE</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT contribuyente.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Notificacion">
              <xs:annotation>
                <xs:documentation>Notificacion emitida por el SII</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Tipo">
                    <xs:annotation>
                      <xs:documentation>1: Formulario F 3301. Usado para IVA e Impuesto a la Renta 2: Formulario F 3302: Origen de Fondos</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:enumeration value="1">
                          <xs:annotation>
                            <xs:documentation>Formulario F 3301. Usado para IVA e Impuesto a la Renta </xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="2">
                          <xs:annotation>
                            <xs:documentation>Formulario F 3302: Origen de Fondos</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Folio" type="SiiLce:FolioType">
                    <xs:annotation>
                      <xs:documentation>Folio de la notificacion</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="TmstFirmaEnv" type="xs:dateTime">
              <xs:annotation>
                <xs:documentation>Fecha y Hora de la Firma del Archivo de Envio</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital sobre Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LCE" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:sequence minOccurs="0" maxOccurs="unbounded">
              <xs:choice>
                <xs:annotation>
                  <xs:documentation>Libro a enviar</xs:documentation>
                </xs:annotation>
                <xs:element ref="SiiLce:LceMayor">
                  <xs:annotation>
                    <xs:documentation>Informacion Electronica de Libros de Compra y Venta</xs:documentation>
                  </xs:annotation>
                </xs:element>
                <xs:element ref="SiiLce:LceDiario"/>
              </xs:choice>
              <xs:element name="Parcial" type="xs:boolean" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>true= Indica que el libro es PARCIAL. Se asume "false", es decir, que es COMPLETO.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:element name="NoCerrado" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element ref="SiiLce:LceBalance" minOccurs="0"/>
                  <xs:element ref="SiiLce:LceDiccionario" minOccurs="0"/>
                  <xs:choice>
                    <xs:element ref="SiiLce:LceCoCertif"/>
                    <xs:element ref="SiiLce:LceCal">
                      <xs:annotation>
                        <xs:documentation>Certificado Autorizacion de Libros, generado por el SII</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros
diagram
namespace http://www.sii.cl/SiiLce
children RutEnvia RutContribuyente Notificacion TmstFirmaEnv
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Documento de Envio de LCE
source
<xs:element name="DocumentoEnvioLibros">
  <xs:annotation>
    <xs:documentation>Documento de Envio de LCE</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutEnvia" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT que envia los LCE</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT contribuyente.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Notificacion">
        <xs:annotation>
          <xs:documentation>Notificacion emitida por el SII</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Tipo">
              <xs:annotation>
                <xs:documentation>1: Formulario F 3301. Usado para IVA e Impuesto a la Renta 2: Formulario F 3302: Origen de Fondos</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Formulario F 3301. Usado para IVA e Impuesto a la Renta </xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Formulario F 3302: Origen de Fondos</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Folio" type="SiiLce:FolioType">
              <xs:annotation>
                <xs:documentation>Folio de la notificacion</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TmstFirmaEnv" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Fecha y Hora de la Firma del Archivo de Envio</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/RutEnvia
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT que envia los LCE
source
<xs:element name="RutEnvia" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT que envia los LCE</xs:documentation>
  </xs:annotation>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT contribuyente.
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT contribuyente.</xs:documentation>
  </xs:annotation>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/Notificacion
diagram
namespace http://www.sii.cl/SiiLce
children Tipo Folio
annotation
documentation 
Notificacion emitida por el SII
source
<xs:element name="Notificacion">
  <xs:annotation>
    <xs:documentation>Notificacion emitida por el SII</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Tipo">
        <xs:annotation>
          <xs:documentation>1: Formulario F 3301. Usado para IVA e Impuesto a la Renta 2: Formulario F 3302: Origen de Fondos</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Formulario F 3301. Usado para IVA e Impuesto a la Renta </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Formulario F 3302: Origen de Fondos</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Folio" type="SiiLce:FolioType">
        <xs:annotation>
          <xs:documentation>Folio de la notificacion</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/Notificacion/Tipo
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
enumeration 1
enumeration 2
annotation
documentation 
1: Formulario F 3301. Usado para IVA e Impuesto a la Renta 2: Formulario F 3302: Origen de Fondos
source
<xs:element name="Tipo">
  <xs:annotation>
    <xs:documentation>1: Formulario F 3301. Usado para IVA e Impuesto a la Renta 2: Formulario F 3302: Origen de Fondos</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Formulario F 3301. Usado para IVA e Impuesto a la Renta </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Formulario F 3302: Origen de Fondos</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/Notificacion/Folio
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:FolioType
facets
totalDigits 10
annotation
documentation 
Folio de la notificacion
source
<xs:element name="Folio" type="SiiLce:FolioType">
  <xs:annotation>
    <xs:documentation>Folio de la notificacion</xs:documentation>
  </xs:annotation>
</xs:element>

element LceEnvioLibros/DocumentoEnvioLibros/TmstFirmaEnv
diagram
namespace http://www.sii.cl/SiiLce
type xs:dateTime
annotation
documentation 
Fecha y Hora de la Firma del Archivo de Envio
source
<xs:element name="TmstFirmaEnv" type="xs:dateTime">
  <xs:annotation>
    <xs:documentation>Fecha y Hora de la Firma del Archivo de Envio</xs:documentation>
  </xs:annotation>
</xs:element>

element LceEnvioLibros/LCE
diagram
namespace http://www.sii.cl/SiiLce
children SiiLce:LceMayor SiiLce:LceDiario Parcial NoCerrado
source
<xs:element name="LCE" maxOccurs="unbounded">
  <xs:complexType>
    <xs:sequence>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:choice>
          <xs:annotation>
            <xs:documentation>Libro a enviar</xs:documentation>
          </xs:annotation>
          <xs:element ref="SiiLce:LceMayor">
            <xs:annotation>
              <xs:documentation>Informacion Electronica de Libros de Compra y Venta</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element ref="SiiLce:LceDiario"/>
        </xs:choice>
        <xs:element name="Parcial" type="xs:boolean" minOccurs="0">
          <xs:annotation>
            <xs:documentation>true= Indica que el libro es PARCIAL. Se asume "false", es decir, que es COMPLETO.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
      <xs:element name="NoCerrado" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="SiiLce:LceBalance" minOccurs="0"/>
            <xs:element ref="SiiLce:LceDiccionario" minOccurs="0"/>
            <xs:choice>
              <xs:element ref="SiiLce:LceCoCertif"/>
              <xs:element ref="SiiLce:LceCal">
                <xs:annotation>
                  <xs:documentation>Certificado Autorizacion de Libros, generado por el SII</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element LceEnvioLibros/LCE/Parcial
diagram
namespace http://www.sii.cl/SiiLce
type xs:boolean
annotation
documentation 
true= Indica que el libro es PARCIAL. Se asume "false", es decir, que es COMPLETO.
source
<xs:element name="Parcial" type="xs:boolean" minOccurs="0">
  <xs:annotation>
    <xs:documentation>true= Indica que el libro es PARCIAL. Se asume "false", es decir, que es COMPLETO.</xs:documentation>
  </xs:annotation>
</xs:element>

element LceEnvioLibros/LCE/NoCerrado
diagram
namespace http://www.sii.cl/SiiLce
children SiiLce:LceBalance SiiLce:LceDiccionario SiiLce:LceCoCertif SiiLce:LceCal
source
<xs:element name="NoCerrado" minOccurs="0">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SiiLce:LceBalance" minOccurs="0"/>
      <xs:element ref="SiiLce:LceDiccionario" minOccurs="0"/>
      <xs:choice>
        <xs:element ref="SiiLce:LceCoCertif"/>
        <xs:element ref="SiiLce:LceCal">
          <xs:annotation>
            <xs:documentation>Certificado Autorizacion de Libros, generado por el SII</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor
diagram
namespace http://www.sii.cl/SiiLce
children SiiLce:LceMayorRes Cuenta
used by
element LceEnvioLibros/LCE
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion del Mayor
source
<xs:element name="LceMayor">
  <xs:annotation>
    <xs:documentation>Informacion del Mayor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SiiLce:LceMayorRes"/>
      <xs:element name="Cuenta" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CodigoCuenta">
              <xs:annotation>
                <xs:documentation>Codigo Cuenta Contable</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Apertura" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Apertura de la cuenta.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Monto del Debe.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Monto del Haber.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Movimientos" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Movimientos de la cuenta.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TpoComp">
                    <xs:annotation>
                      <xs:documentation>Tipo de Comprobante.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:maxLength value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="NumComp">
                    <xs:annotation>
                      <xs:documentation>Numero comprobante. Es obligatorio, excepto si Tipo Comprobante es de Apertura o Cierre</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="18"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="FechaContable" type="xs:date">
                    <xs:annotation>
                      <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="GlosaAnalisis" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Glosa de analisis.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="120"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>RUT </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Nombre" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Nombre o Razon Social</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="120"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="TpoDocum" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:maxLength value="15"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Numero" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Número del documento</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:maxLength value="18"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="FchEmision" type="xs:date" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Fecha de Emision (AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>fecha de Vencimiento (AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Glosa">
                          <xs:annotation>
                            <xs:documentation>Nombre del campo</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="30"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="Ref">
                          <xs:annotation>
                            <xs:documentation>Dato del campo</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="20"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor/Cuenta
diagram
namespace http://www.sii.cl/SiiLce
children CodigoCuenta Apertura Movimientos
annotation
documentation 
Detalle de Documentos que Componen el Libro Electronico
source
<xs:element name="Cuenta" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CodigoCuenta">
        <xs:annotation>
          <xs:documentation>Codigo Cuenta Contable</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Apertura" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Apertura de la cuenta.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Monto del Debe.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Monto del Haber.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:choice>
              <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Movimientos" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Movimientos de la cuenta.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TpoComp">
              <xs:annotation>
                <xs:documentation>Tipo de Comprobante.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:maxLength value="4"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NumComp">
              <xs:annotation>
                <xs:documentation>Numero comprobante. Es obligatorio, excepto si Tipo Comprobante es de Apertura o Cierre</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="18"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FechaContable" type="xs:date">
              <xs:annotation>
                <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GlosaAnalisis" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Glosa de analisis.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="120"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>RUT </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Nombre" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Nombre o Razon Social</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="120"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="TpoDocum" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:maxLength value="15"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Numero" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Número del documento</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:maxLength value="18"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FchEmision" type="xs:date" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Fecha de Emision (AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
              <xs:annotation>
                <xs:documentation>fecha de Vencimiento (AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Glosa">
                    <xs:annotation>
                      <xs:documentation>Nombre del campo</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Ref">
                    <xs:annotation>
                      <xs:documentation>Dato del campo</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="20"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:choice>
              <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor/Cuenta/CodigoCuenta
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 20
annotation
documentation 
Codigo Cuenta Contable
source
<xs:element name="CodigoCuenta">
  <xs:annotation>
    <xs:documentation>Codigo Cuenta Contable</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Apertura
diagram
namespace http://www.sii.cl/SiiLce
children Debe Haber SaldoDeudor SaldoAcreedor
annotation
documentation 
Apertura de la cuenta.
source
<xs:element name="Apertura" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Apertura de la cuenta.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Monto del Debe.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Monto del Haber.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Apertura/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Monto del Debe.
source
<xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Monto del Debe.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Apertura/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Monto del Haber.
source
<xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Monto del Haber.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Apertura/SaldoDeudor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"
source
<xs:element name="SaldoDeudor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Apertura/SaldoAcreedor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"
source
<xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos
diagram
namespace http://www.sii.cl/SiiLce
children TpoComp NumComp FechaContable GlosaAnalisis Rut Nombre TpoDocum Numero FchEmision FchVencimiento GlosaRef Debe Haber
annotation
documentation 
Movimientos de la cuenta.
source
<xs:element name="Movimientos" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Movimientos de la cuenta.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TpoComp">
        <xs:annotation>
          <xs:documentation>Tipo de Comprobante.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:maxLength value="4"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NumComp">
        <xs:annotation>
          <xs:documentation>Numero comprobante. Es obligatorio, excepto si Tipo Comprobante es de Apertura o Cierre</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="18"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FechaContable" type="xs:date">
        <xs:annotation>
          <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GlosaAnalisis" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Glosa de analisis.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="120"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>RUT </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Nombre" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Nombre o Razon Social</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="120"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="TpoDocum" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:maxLength value="15"/>
            <xs:minLength value="1"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Numero" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Número del documento</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:maxLength value="18"/>
            <xs:minLength value="1"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FchEmision" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Fecha de Emision (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>fecha de Vencimiento (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Glosa">
              <xs:annotation>
                <xs:documentation>Nombre del campo</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="30"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Ref">
              <xs:annotation>
                <xs:documentation>Dato del campo</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:choice>
        <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/TpoComp
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
maxLength 4
annotation
documentation 
Tipo de Comprobante.
source
<xs:element name="TpoComp">
  <xs:annotation>
    <xs:documentation>Tipo de Comprobante.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/NumComp
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 18
annotation
documentation 
Numero comprobante. Es obligatorio, excepto si Tipo Comprobante es de Apertura o Cierre
source
<xs:element name="NumComp">
  <xs:annotation>
    <xs:documentation>Numero comprobante. Es obligatorio, excepto si Tipo Comprobante es de Apertura o Cierre</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="18"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/FechaContable
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha Contable (AAAA-MM-DD)
source
<xs:element name="FechaContable" type="xs:date">
  <xs:annotation>
    <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/GlosaAnalisis
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 120
annotation
documentation 
Glosa de analisis.
source
<xs:element name="GlosaAnalisis" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Glosa de analisis.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/Rut
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT 
source
<xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>RUT </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/Nombre
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 120
annotation
documentation 
Nombre o Razon Social
source
<xs:element name="Nombre" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Nombre o Razon Social</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/TpoDocum
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 15
annotation
documentation 
Nombre del tipo de documento, se puede usar abreviatura
source
<xs:element name="TpoDocum" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:maxLength value="15"/>
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/Numero
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 18
annotation
documentation 
Número del documento
source
<xs:element name="Numero" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Número del documento</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:maxLength value="18"/>
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/FchEmision
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha de Emision (AAAA-MM-DD)
source
<xs:element name="FchEmision" type="xs:date" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Fecha de Emision (AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/FchVencimiento
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
fecha de Vencimiento (AAAA-MM-DD)
source
<xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
  <xs:annotation>
    <xs:documentation>fecha de Vencimiento (AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/GlosaRef
diagram
namespace http://www.sii.cl/SiiLce
children Glosa Ref
source
<xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Glosa">
        <xs:annotation>
          <xs:documentation>Nombre del campo</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Ref">
        <xs:annotation>
          <xs:documentation>Dato del campo</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/GlosaRef/Glosa
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 30
annotation
documentation 
Nombre del campo
source
<xs:element name="Glosa">
  <xs:annotation>
    <xs:documentation>Nombre del campo</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="30"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/GlosaRef/Ref
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 20
annotation
documentation 
Dato del campo
source
<xs:element name="Ref">
  <xs:annotation>
    <xs:documentation>Dato del campo</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Debe haber uno sólo campo ( Debe o Haber).
source
<xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayor/Cuenta/Movimientos/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Debe haber uno sólo campo ( Debe o Haber). 
source
<xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario
diagram
namespace http://www.sii.cl/SiiLce
children SiiLce:LceDiarioRes ValorApertura Comprobante
used by
element LceEnvioLibros/LCE
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion del Mayor
source
<xs:element name="LceDiario">
  <xs:annotation>
    <xs:documentation>Informacion del Mayor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="SiiLce:LceDiarioRes"/>
      <xs:element name="ValorApertura" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Valor de la Apertura </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Comprobante" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TpoComp">
              <xs:annotation>
                <xs:documentation>Tipo de Comprobante. </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:maxLength value="4"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NumComp">
              <xs:annotation>
                <xs:documentation>Numero comprobante. Puede ser alfanumerico.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:maxLength value="18"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FechaContable" type="xs:date">
              <xs:annotation>
                <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GlosaAnalisis" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Glosa de analisis.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="120"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Movimientos" minOccurs="2" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="CodigoCuenta">
                    <xs:annotation>
                      <xs:documentation>Codigo Cuenta Contable</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>RUT </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Nombre" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Nombre o Razon Social</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="120"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="TpoDocum" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="60"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Numero" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Número del documento</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="18"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="FchEmision" type="xs:date" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Fecha de Emision ( AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>fecha de Vencimiento ( AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Glosa">
                          <xs:annotation>
                            <xs:documentation>Nombre del campo</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="30"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="Ref">
                          <xs:annotation>
                            <xs:documentation>Dato del campo</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="20"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ValorComprobante" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Valor del Comprobante. Es la sumatoria de los "Debe" de los movimientos.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiario/ValorApertura
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Valor de la Apertura 
source
<xs:element name="ValorApertura" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Valor de la Apertura </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante
diagram
namespace http://www.sii.cl/SiiLce
children TpoComp NumComp FechaContable GlosaAnalisis Movimientos ValorComprobante
annotation
documentation 
Detalle de Documentos que Componen el Libro Electronico
source
<xs:element name="Comprobante" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TpoComp">
        <xs:annotation>
          <xs:documentation>Tipo de Comprobante. </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:maxLength value="4"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NumComp">
        <xs:annotation>
          <xs:documentation>Numero comprobante. Puede ser alfanumerico.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:maxLength value="18"/>
            <xs:minLength value="1"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FechaContable" type="xs:date">
        <xs:annotation>
          <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GlosaAnalisis" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Glosa de analisis.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="120"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Movimientos" minOccurs="2" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CodigoCuenta">
              <xs:annotation>
                <xs:documentation>Codigo Cuenta Contable</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>RUT </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Nombre" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Nombre o Razon Social</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="120"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="TpoDocum" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="60"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Numero" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Número del documento</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="18"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FchEmision" type="xs:date" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Fecha de Emision ( AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
              <xs:annotation>
                <xs:documentation>fecha de Vencimiento ( AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Glosa">
                    <xs:annotation>
                      <xs:documentation>Nombre del campo</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Ref">
                    <xs:annotation>
                      <xs:documentation>Dato del campo</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="20"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:choice>
              <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ValorComprobante" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Valor del Comprobante. Es la sumatoria de los "Debe" de los movimientos.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiario/Comprobante/TpoComp
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
maxLength 4
annotation
documentation 
Tipo de Comprobante. 
source
<xs:element name="TpoComp">
  <xs:annotation>
    <xs:documentation>Tipo de Comprobante. </xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/NumComp
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 18
annotation
documentation 
Numero comprobante. Puede ser alfanumerico.
source
<xs:element name="NumComp">
  <xs:annotation>
    <xs:documentation>Numero comprobante. Puede ser alfanumerico.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:maxLength value="18"/>
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/FechaContable
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha Contable (AAAA-MM-DD)
source
<xs:element name="FechaContable" type="xs:date">
  <xs:annotation>
    <xs:documentation>Fecha Contable (AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/GlosaAnalisis
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 120
annotation
documentation 
Glosa de analisis.
source
<xs:element name="GlosaAnalisis" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Glosa de analisis.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos
diagram
namespace http://www.sii.cl/SiiLce
children CodigoCuenta Rut Nombre TpoDocum Numero FchEmision FchVencimiento GlosaRef Debe Haber
source
<xs:element name="Movimientos" minOccurs="2" maxOccurs="unbounded">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CodigoCuenta">
        <xs:annotation>
          <xs:documentation>Codigo Cuenta Contable</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>RUT </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Nombre" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Nombre o Razon Social</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="120"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="TpoDocum" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="60"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Numero" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Número del documento</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="18"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FchEmision" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Fecha de Emision ( AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
        <xs:annotation>
          <xs:documentation>fecha de Vencimiento ( AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Glosa">
              <xs:annotation>
                <xs:documentation>Nombre del campo</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="30"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Ref">
              <xs:annotation>
                <xs:documentation>Dato del campo</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:choice>
        <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/CodigoCuenta
diagram
namespace http://www.sii.cl/SiiLce
annotation
documentation 
Codigo Cuenta Contable
source
<xs:element name="CodigoCuenta">
  <xs:annotation>
    <xs:documentation>Codigo Cuenta Contable</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/Rut
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT 
source
<xs:element name="Rut" type="SiiLce:RUTType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>RUT </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/Nombre
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 120
annotation
documentation 
Nombre o Razon Social
source
<xs:element name="Nombre" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Nombre o Razon Social</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/TpoDocum
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 60
annotation
documentation 
Nombre del tipo de documento, se puede usar abreviatura
source
<xs:element name="TpoDocum" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Nombre del tipo de documento, se puede usar abreviatura</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="60"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/Numero
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 18
annotation
documentation 
Número del documento
source
<xs:element name="Numero" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Número del documento</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="18"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/FchEmision
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha de Emision ( AAAA-MM-DD)
source
<xs:element name="FchEmision" type="xs:date" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Fecha de Emision ( AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/FchVencimiento
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
fecha de Vencimiento ( AAAA-MM-DD)
source
<xs:element name="FchVencimiento" type="xs:date" minOccurs="0">
  <xs:annotation>
    <xs:documentation>fecha de Vencimiento ( AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/GlosaRef
diagram
namespace http://www.sii.cl/SiiLce
children Glosa Ref
source
<xs:element name="GlosaRef" minOccurs="0" maxOccurs="4">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Glosa">
        <xs:annotation>
          <xs:documentation>Nombre del campo</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="30"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Ref">
        <xs:annotation>
          <xs:documentation>Dato del campo</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/GlosaRef/Glosa
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 30
annotation
documentation 
Nombre del campo
source
<xs:element name="Glosa">
  <xs:annotation>
    <xs:documentation>Nombre del campo</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="30"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/GlosaRef/Ref
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 20
annotation
documentation 
Dato del campo
source
<xs:element name="Ref">
  <xs:annotation>
    <xs:documentation>Dato del campo</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Debe haber uno sólo campo ( Debe o Haber).
source
<xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Debe haber uno sólo campo ( Debe o Haber).</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/Movimientos/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Debe haber uno sólo campo ( Debe o Haber). 
source
<xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Debe haber uno sólo campo ( Debe o Haber). </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiario/Comprobante/ValorComprobante
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Valor del Comprobante. Es la sumatoria de los "Debe" de los movimientos.
source
<xs:element name="ValorComprobante" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Valor del Comprobante. Es la sumatoria de los "Debe" de los movimientos.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCoCertif
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoCoCertif ds:Signature
used by
element LceEnvioLibros/LCE/NoCerrado
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Comprobante de Certificacion
source
<xs:element name="LceCoCertif">
  <xs:annotation>
    <xs:documentation>Comprobante de Certificacion</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoCoCertif">
        <xs:annotation>
          <xs:documentation>Documento de Comprobante de Certificacion</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FchEmision" type="xs:date">
              <xs:annotation>
                <xs:documentation>Fecha de Emision del Comprobante de Certificacion (AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element ref="SiiLce:LceCal"/>
            <xs:element name="RutFirmanteDistribuidor" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT autorizado por el Distribuidor a firmar este documento.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma" type="xs:dateTime">
              <xs:annotation>
                <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital sobre Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceCoCertif/DocumentoCoCertif
diagram
namespace http://www.sii.cl/SiiLce
children RutContribuyente FchEmision SiiLce:LceCal RutFirmanteDistribuidor TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Documento de Comprobante de Certificacion
source
<xs:element name="DocumentoCoCertif">
  <xs:annotation>
    <xs:documentation>Documento de Comprobante de Certificacion</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FchEmision" type="xs:date">
        <xs:annotation>
          <xs:documentation>Fecha de Emision del Comprobante de Certificacion (AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element ref="SiiLce:LceCal"/>
      <xs:element name="RutFirmanteDistribuidor" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT autorizado por el Distribuidor a firmar este documento.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceCoCertif/DocumentoCoCertif/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT Contribuyente de los LCE
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCoCertif/DocumentoCoCertif/FchEmision
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha de Emision del Comprobante de Certificacion (AAAA-MM-DD)
source
<xs:element name="FchEmision" type="xs:date">
  <xs:annotation>
    <xs:documentation>Fecha de Emision del Comprobante de Certificacion (AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCoCertif/DocumentoCoCertif/RutFirmanteDistribuidor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT autorizado por el Distribuidor a firmar este documento.
source
<xs:element name="RutFirmanteDistribuidor" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT autorizado por el Distribuidor a firmar este documento.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCoCertif/DocumentoCoCertif/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type xs:dateTime
annotation
documentation 
Fecha y Hora de la Firma 
source
<xs:element name="TmstFirma" type="xs:dateTime">
  <xs:annotation>
    <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoBalance ds:Signature
used by
element LceEnvioLibros/LCE/NoCerrado
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion del Libro Balance
source
<xs:element name="LceBalance">
  <xs:annotation>
    <xs:documentation>Informacion del Libro Balance</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoBalance">
        <xs:annotation>
          <xs:documentation>Informacion del Balance</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Identificacion">
              <xs:annotation>
                <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="RutContribuyente" type="SiiLce:RUTType">
                    <xs:annotation>
                      <xs:documentation>RUT contribuyente.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="PeriodoTributario" type="xs:gYearMonth">
                    <xs:annotation>
                      <xs:documentation>Periodo Tributario del Libro Electronico. Formato AAAA-MM</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Moneda" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Codigo de Moneda</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="CodigoCuenta">
                    <xs:annotation>
                      <xs:documentation>Codigo Cuenta Contable</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="20"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Debe" type="SiiLce:MontoType">
                    <xs:annotation>
                      <xs:documentation>Total Debitos</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Haber" type="SiiLce:MontoType">
                    <xs:annotation>
                      <xs:documentation>Total Cerditos</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="SaldoDeudor" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="SaldoAcreedor" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="RutFirma" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT que Firma este Documento</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma">
              <xs:annotation>
                <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:dateTime"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance
diagram
namespace http://www.sii.cl/SiiLce
children Identificacion Cuenta RutFirma TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Informacion del Balance
source
<xs:element name="DocumentoBalance">
  <xs:annotation>
    <xs:documentation>Informacion del Balance</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Identificacion">
        <xs:annotation>
          <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT contribuyente.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PeriodoTributario" type="xs:gYearMonth">
              <xs:annotation>
                <xs:documentation>Periodo Tributario del Libro Electronico. Formato AAAA-MM</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Moneda" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Codigo de Moneda</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CodigoCuenta">
              <xs:annotation>
                <xs:documentation>Codigo Cuenta Contable</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Debe" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Total Debitos</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Haber" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Total Cerditos</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="SaldoDeudor" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="SaldoAcreedor" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="RutFirma" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT que Firma este Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma">
        <xs:annotation>
          <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:dateTime"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Identificacion
diagram
namespace http://www.sii.cl/SiiLce
children RutContribuyente PeriodoTributario Moneda Rectificatoria
annotation
documentation 
Identificacion del Envio del Libro Electronico
source
<xs:element name="Identificacion">
  <xs:annotation>
    <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT contribuyente.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodoTributario" type="xs:gYearMonth">
        <xs:annotation>
          <xs:documentation>Periodo Tributario del Libro Electronico. Formato AAAA-MM</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Moneda" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Codigo de Moneda</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Identificacion/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT contribuyente.
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT contribuyente.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Identificacion/PeriodoTributario
diagram
namespace http://www.sii.cl/SiiLce
type xs:gYearMonth
annotation
documentation 
Periodo Tributario del Libro Electronico. Formato AAAA-MM
source
<xs:element name="PeriodoTributario" type="xs:gYearMonth">
  <xs:annotation>
    <xs:documentation>Periodo Tributario del Libro Electronico. Formato AAAA-MM</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Identificacion/Moneda
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 10
annotation
documentation 
Codigo de Moneda
source
<xs:element name="Moneda" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Codigo de Moneda</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Identificacion/Rectificatoria
diagram
namespace http://www.sii.cl/SiiLce
type xs:positiveInteger
annotation
documentation 
Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.
source
<xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta
diagram
namespace http://www.sii.cl/SiiLce
children CodigoCuenta Debe Haber SaldoDeudor SaldoAcreedor
annotation
documentation 
Detalle de Documentos que Componen el Libro Electronico
source
<xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CodigoCuenta">
        <xs:annotation>
          <xs:documentation>Codigo Cuenta Contable</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Debe" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Total Debitos</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Haber" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Total Cerditos</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SaldoDeudor" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SaldoAcreedor" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta/CodigoCuenta
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 20
annotation
documentation 
Codigo Cuenta Contable
source
<xs:element name="CodigoCuenta">
  <xs:annotation>
    <xs:documentation>Codigo Cuenta Contable</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Total Debitos
source
<xs:element name="Debe" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Total Debitos</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Total Cerditos
source
<xs:element name="Haber" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Total Cerditos</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoDeudor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"
source
<xs:element name="SaldoDeudor" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoAcreedor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"
source
<xs:element name="SaldoAcreedor" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/RutFirma
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT que Firma este Documento
source
<xs:element name="RutFirma" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT que Firma este Documento</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceBalance/DocumentoBalance/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:dateTime
annotation
documentation 
Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica
source
<xs:element name="TmstFirma">
  <xs:annotation>
    <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:dateTime"/>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiccionario
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoDiccionario ds:Signature
used by
element LceEnvioLibros/LCE/NoCerrado
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion del Diccionario
source
<xs:element name="LceDiccionario">
  <xs:annotation>
    <xs:documentation>Informacion del Diccionario</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoDiccionario">
        <xs:annotation>
          <xs:documentation>Informacion del Diccionario</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Identificacion">
              <xs:annotation>
                <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="RutContribuyente" type="SiiLce:RUTType">
                    <xs:annotation>
                      <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="PeriodoTributario" type="xs:gYear">
                    <xs:annotation>
                      <xs:documentation>Periodo Tributario del Libro Electronico (AAAA)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Detalle de la cuentas</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ClasificacionCuenta">
                    <xs:annotation>
                      <xs:documentation>Clasificacion de la cuenta Contable. A Acivo,Pasivo,Patrimonio,Pardidas y Ganancias</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:enumeration value="1">
                          <xs:annotation>
                            <xs:documentation>Activo</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="2">
                          <xs:annotation>
                            <xs:documentation>Pasivo</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="3">
                          <xs:annotation>
                            <xs:documentation>Patrimonio</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="4">
                          <xs:annotation>
                            <xs:documentation>Perdidas y Ganancias</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodigoCuenta">
                    <xs:annotation>
                      <xs:documentation>Codigo Cuenta Contable</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="20"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Glosa">
                    <xs:annotation>
                      <xs:documentation>Descripcion de la Cuenta</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="40"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodigoSII">
                    <xs:annotation>
                      <xs:documentation>Codigo equivalente del SII</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="16"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="RutFirma" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT que firma este Documento</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma">
              <xs:annotation>
                <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:dateTime"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature"/>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario
diagram
namespace http://www.sii.cl/SiiLce
children Identificacion Cuenta RutFirma TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Informacion del Diccionario
source
<xs:element name="DocumentoDiccionario">
  <xs:annotation>
    <xs:documentation>Informacion del Diccionario</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Identificacion">
        <xs:annotation>
          <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PeriodoTributario" type="xs:gYear">
              <xs:annotation>
                <xs:documentation>Periodo Tributario del Libro Electronico (AAAA)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Detalle de la cuentas</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ClasificacionCuenta">
              <xs:annotation>
                <xs:documentation>Clasificacion de la cuenta Contable. A Acivo,Pasivo,Patrimonio,Pardidas y Ganancias</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Activo</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Pasivo</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Patrimonio</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Perdidas y Ganancias</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodigoCuenta">
              <xs:annotation>
                <xs:documentation>Codigo Cuenta Contable</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Glosa">
              <xs:annotation>
                <xs:documentation>Descripcion de la Cuenta</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="40"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodigoSII">
              <xs:annotation>
                <xs:documentation>Codigo equivalente del SII</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="16"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="RutFirma" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT que firma este Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma">
        <xs:annotation>
          <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:dateTime"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion
diagram
namespace http://www.sii.cl/SiiLce
children RutContribuyente PeriodoTributario Rectificatoria
annotation
documentation 
Identificacion del Envio del Libro Electronico
source
<xs:element name="Identificacion">
  <xs:annotation>
    <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodoTributario" type="xs:gYear">
        <xs:annotation>
          <xs:documentation>Periodo Tributario del Libro Electronico (AAAA)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT Contribuyente de los LCE
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT Contribuyente de los LCE</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion/PeriodoTributario
diagram
namespace http://www.sii.cl/SiiLce
type xs:gYear
annotation
documentation 
Periodo Tributario del Libro Electronico (AAAA)
source
<xs:element name="PeriodoTributario" type="xs:gYear">
  <xs:annotation>
    <xs:documentation>Periodo Tributario del Libro Electronico (AAAA)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion/Rectificatoria
diagram
namespace http://www.sii.cl/SiiLce
type xs:positiveInteger
annotation
documentation 
Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.
source
<xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Cuenta
diagram
namespace http://www.sii.cl/SiiLce
children ClasificacionCuenta CodigoCuenta Glosa CodigoSII
annotation
documentation 
Detalle de la cuentas
source
<xs:element name="Cuenta" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Detalle de la cuentas</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ClasificacionCuenta">
        <xs:annotation>
          <xs:documentation>Clasificacion de la cuenta Contable. A Acivo,Pasivo,Patrimonio,Pardidas y Ganancias</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Activo</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Pasivo</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Patrimonio</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Perdidas y Ganancias</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodigoCuenta">
        <xs:annotation>
          <xs:documentation>Codigo Cuenta Contable</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Glosa">
        <xs:annotation>
          <xs:documentation>Descripcion de la Cuenta</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="40"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodigoSII">
        <xs:annotation>
          <xs:documentation>Codigo equivalente del SII</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="16"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Cuenta/ClasificacionCuenta
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
enumeration 1
enumeration 2
enumeration 3
enumeration 4
annotation
documentation 
Clasificacion de la cuenta Contable. A Acivo,Pasivo,Patrimonio,Pardidas y Ganancias
source
<xs:element name="ClasificacionCuenta">
  <xs:annotation>
    <xs:documentation>Clasificacion de la cuenta Contable. A Acivo,Pasivo,Patrimonio,Pardidas y Ganancias</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Activo</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Pasivo</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Patrimonio</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Perdidas y Ganancias</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Cuenta/CodigoCuenta
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 20
annotation
documentation 
Codigo Cuenta Contable
source
<xs:element name="CodigoCuenta">
  <xs:annotation>
    <xs:documentation>Codigo Cuenta Contable</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Cuenta/Glosa
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
maxLength 40
annotation
documentation 
Descripcion de la Cuenta
source
<xs:element name="Glosa">
  <xs:annotation>
    <xs:documentation>Descripcion de la Cuenta</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:maxLength value="40"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/Cuenta/CodigoSII
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 16
annotation
documentation 
Codigo equivalente del SII
source
<xs:element name="CodigoSII">
  <xs:annotation>
    <xs:documentation>Codigo equivalente del SII</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="16"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/RutFirma
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT que firma este Documento
source
<xs:element name="RutFirma" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT que firma este Documento</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiccionario/DocumentoDiccionario/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:dateTime
annotation
documentation 
Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica
source
<xs:element name="TmstFirma">
  <xs:annotation>
    <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:dateTime"/>
  </xs:simpleType>
</xs:element>

element ds:Signature
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type ds:SignatureType
children SignedInfo SignatureValue KeyInfo
used by
elements LceEnvioLibros SiiLce:LceBalance SiiLce:LceCal SiiLce:LceCoCertif SiiLce:LceDiarioRes SiiLce:LceDiccionario SiiLce:LceMayorRes
annotation
documentation 
Firma Digital sobre Documento
source
<xs:element name="Signature" type="xmldsig:SignatureType">
  <xs:annotation>
    <xs:documentation>Firma Digital sobre Documento</xs:documentation>
  </xs:annotation>
</xs:element>

complexType ds:SignatureType
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children SignedInfo SignatureValue KeyInfo
used by
element ds:Signature
annotation
documentation 
Firma Digital con Restricciones
source
<xs:complexType name="SignatureType">
  <xs:annotation>
    <xs:documentation>Firma Digital con Restricciones</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="SignedInfo">
      <xs:annotation>
        <xs:documentation>Descripcion de la Informacion Firmada y del Metodo de Firma</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="CanonicalizationMethod">
            <xs:annotation>
              <xs:documentation>Algoritmo de Canonicalizacion</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
            </xs:complexType>
          </xs:element>
          <xs:element name="SignatureMethod">
            <xs:annotation>
              <xs:documentation>Algoritmo de Firma</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:attribute name="Algorithm" use="required">
                <xs:simpleType>
                  <xs:restriction base="ds:anyURI">
                    <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                    <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
          <xs:element name="Reference">
            <xs:annotation>
              <xs:documentation>Referencia a Elemento Firmado</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Transforms" minOccurs="0">
                  <xs:annotation>
                    <xs:documentation>Algoritmo de Transformacion</xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:sequence>
                      <xs:element name="Transform">
                        <xs:complexType>
                          <xs:attribute name="Algorithm" type="ds:anyURI" use="required"/>
                        </xs:complexType>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                </xs:element>
                <xs:element name="DigestMethod">
                  <xs:annotation>
                    <xs:documentation>Algoritmo de Digest</xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#sha1"/>
                  </xs:complexType>
                </xs:element>
                <xs:element name="DigestValue" type="ds:base64Binary">
                  <xs:annotation>
                    <xs:documentation>Valor de Digest</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
              <xs:attribute name="URI" type="ds:anyURI" use="required"/>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="SignatureValue" type="ds:base64Binary">
      <xs:annotation>
        <xs:documentation>Valor de la Firma Digital</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="KeyInfo">
      <xs:annotation>
        <xs:documentation>Informacion de Claves Publicas y Certificado</xs:documentation>
      </xs:annotation>
      <xs:complexType>
        <xs:sequence>
          <xs:element name="KeyValue">
            <xs:complexType>
              <xs:choice>
                <xs:element name="RSAKeyValue">
                  <xs:annotation>
                    <xs:documentation>Informacion de Claves Publicas RSA</xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:sequence>
                      <xs:element name="Modulus" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>Modulo Clave RSA</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                      <xs:element name="Exponent" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>Exponente Clave RSA</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                </xs:element>
                <xs:element name="DSAKeyValue">
                  <xs:annotation>
                    <xs:documentation>Informacion de Claves Publicas DSA</xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:sequence>
                      <xs:element name="P" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>Modulo Primo</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                      <xs:element name="Q" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>Entero Divisor de P - 1</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                      <xs:element name="G" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>Entero f(P, Q)</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                      <xs:element name="Y" type="ds:base64Binary">
                        <xs:annotation>
                          <xs:documentation>G**X mod P</xs:documentation>
                        </xs:annotation>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                </xs:element>
              </xs:choice>
            </xs:complexType>
          </xs:element>
          <xs:element name="X509Data">
            <xs:annotation>
              <xs:documentation>Informacion del Certificado Publico</xs:documentation>
            </xs:annotation>
            <xs:complexType>
              <xs:sequence>
                <xs:element name="X509Certificate" type="ds:base64Binary">
                  <xs:annotation>
                    <xs:documentation>Certificado Publico</xs:documentation>
                  </xs:annotation>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element ds:SignatureType/SignedInfo
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children CanonicalizationMethod SignatureMethod Reference
annotation
documentation 
Descripcion de la Informacion Firmada y del Metodo de Firma
source
<xs:element name="SignedInfo">
  <xs:annotation>
    <xs:documentation>Descripcion de la Informacion Firmada y del Metodo de Firma</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CanonicalizationMethod">
        <xs:annotation>
          <xs:documentation>Algoritmo de Canonicalizacion</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="SignatureMethod">
        <xs:annotation>
          <xs:documentation>Algoritmo de Firma</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Algorithm" use="required">
            <xs:simpleType>
              <xs:restriction base="ds:anyURI">
                <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="Reference">
        <xs:annotation>
          <xs:documentation>Referencia a Elemento Firmado</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Transforms" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Algoritmo de Transformacion</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Transform">
                    <xs:complexType>
                      <xs:attribute name="Algorithm" type="ds:anyURI" use="required"/>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DigestMethod">
              <xs:annotation>
                <xs:documentation>Algoritmo de Digest</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#sha1"/>
              </xs:complexType>
            </xs:element>
            <xs:element name="DigestValue" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Valor de Digest</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="URI" type="ds:anyURI" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/CanonicalizationMethod
diagram
namespace http://www.w3.org/2000/09/xmldsig#
attributes
Name  Type  Use  Default  Fixed  Annotation
Algorithm  ds:anyURI  required    http://www.w3.org/TR/2001/REC-xml-c14n-20010315  
annotation
documentation 
Algoritmo de Canonicalizacion
source
<xs:element name="CanonicalizationMethod">
  <xs:annotation>
    <xs:documentation>Algoritmo de Canonicalizacion</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/SignatureMethod
diagram
namespace http://www.w3.org/2000/09/xmldsig#
attributes
Name  Type  Use  Default  Fixed  Annotation
Algorithm  ds:anyURI  required      
annotation
documentation 
Algoritmo de Firma
source
<xs:element name="SignatureMethod">
  <xs:annotation>
    <xs:documentation>Algoritmo de Firma</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="Algorithm" use="required">
      <xs:simpleType>
        <xs:restriction base="ds:anyURI">
          <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
          <xs:enumeration value="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/Reference
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children Transforms DigestMethod DigestValue
attributes
Name  Type  Use  Default  Fixed  Annotation
URI  ds:anyURI  required      
annotation
documentation 
Referencia a Elemento Firmado
source
<xs:element name="Reference">
  <xs:annotation>
    <xs:documentation>Referencia a Elemento Firmado</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Transforms" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Algoritmo de Transformacion</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Transform">
              <xs:complexType>
                <xs:attribute name="Algorithm" type="ds:anyURI" use="required"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DigestMethod">
        <xs:annotation>
          <xs:documentation>Algoritmo de Digest</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#sha1"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="DigestValue" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Valor de Digest</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="URI" type="ds:anyURI" use="required"/>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/Reference/Transforms
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children Transform
annotation
documentation 
Algoritmo de Transformacion
source
<xs:element name="Transforms" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Algoritmo de Transformacion</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Transform">
        <xs:complexType>
          <xs:attribute name="Algorithm" type="ds:anyURI" use="required"/>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/Reference/Transforms/Transform
diagram
namespace http://www.w3.org/2000/09/xmldsig#
attributes
Name  Type  Use  Default  Fixed  Annotation
Algorithm  ds:anyURI  required      
source
<xs:element name="Transform">
  <xs:complexType>
    <xs:attribute name="Algorithm" type="ds:anyURI" use="required"/>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/Reference/DigestMethod
diagram
namespace http://www.w3.org/2000/09/xmldsig#
attributes
Name  Type  Use  Default  Fixed  Annotation
Algorithm  ds:anyURI  required    http://www.w3.org/2000/09/xmldsig#sha1  
annotation
documentation 
Algoritmo de Digest
source
<xs:element name="DigestMethod">
  <xs:annotation>
    <xs:documentation>Algoritmo de Digest</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="Algorithm" type="ds:anyURI" use="required" fixed="http://www.w3.org/2000/09/xmldsig#sha1"/>
  </xs:complexType>
</xs:element>

element ds:SignatureType/SignedInfo/Reference/DigestValue
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Valor de Digest
source
<xs:element name="DigestValue" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Valor de Digest</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/SignatureValue
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Valor de la Firma Digital
source
<xs:element name="SignatureValue" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Valor de la Firma Digital</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children KeyValue X509Data
annotation
documentation 
Informacion de Claves Publicas y Certificado
source
<xs:element name="KeyInfo">
  <xs:annotation>
    <xs:documentation>Informacion de Claves Publicas y Certificado</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="KeyValue">
        <xs:complexType>
          <xs:choice>
            <xs:element name="RSAKeyValue">
              <xs:annotation>
                <xs:documentation>Informacion de Claves Publicas RSA</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Modulus" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>Modulo Clave RSA</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Exponent" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>Exponente Clave RSA</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DSAKeyValue">
              <xs:annotation>
                <xs:documentation>Informacion de Claves Publicas DSA</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="P" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>Modulo Primo</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Q" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>Entero Divisor de P - 1</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="G" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>Entero f(P, Q)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Y" type="ds:base64Binary">
                    <xs:annotation>
                      <xs:documentation>G**X mod P</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element name="X509Data">
        <xs:annotation>
          <xs:documentation>Informacion del Certificado Publico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="X509Certificate" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Certificado Publico</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children RSAKeyValue DSAKeyValue
source
<xs:element name="KeyValue">
  <xs:complexType>
    <xs:choice>
      <xs:element name="RSAKeyValue">
        <xs:annotation>
          <xs:documentation>Informacion de Claves Publicas RSA</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Modulus" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Modulo Clave RSA</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Exponent" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Exponente Clave RSA</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DSAKeyValue">
        <xs:annotation>
          <xs:documentation>Informacion de Claves Publicas DSA</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="P" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Modulo Primo</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Q" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Entero Divisor de P - 1</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="G" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>Entero f(P, Q)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Y" type="ds:base64Binary">
              <xs:annotation>
                <xs:documentation>G**X mod P</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/RSAKeyValue
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children Modulus Exponent
annotation
documentation 
Informacion de Claves Publicas RSA
source
<xs:element name="RSAKeyValue">
  <xs:annotation>
    <xs:documentation>Informacion de Claves Publicas RSA</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Modulus" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Modulo Clave RSA</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Exponent" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Exponente Clave RSA</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/RSAKeyValue/Modulus
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Modulo Clave RSA
source
<xs:element name="Modulus" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Modulo Clave RSA</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/RSAKeyValue/Exponent
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Exponente Clave RSA
source
<xs:element name="Exponent" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Exponente Clave RSA</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/DSAKeyValue
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children P Q G Y
annotation
documentation 
Informacion de Claves Publicas DSA
source
<xs:element name="DSAKeyValue">
  <xs:annotation>
    <xs:documentation>Informacion de Claves Publicas DSA</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="P" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Modulo Primo</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Q" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Entero Divisor de P - 1</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="G" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Entero f(P, Q)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Y" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>G**X mod P</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/DSAKeyValue/P
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Modulo Primo
source
<xs:element name="P" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Modulo Primo</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/DSAKeyValue/Q
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Entero Divisor de P - 1
source
<xs:element name="Q" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Entero Divisor de P - 1</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/DSAKeyValue/G
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Entero f(P, Q)
source
<xs:element name="G" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Entero f(P, Q)</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/KeyValue/DSAKeyValue/Y
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
G**X mod P
source
<xs:element name="Y" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>G**X mod P</xs:documentation>
  </xs:annotation>
</xs:element>

element ds:SignatureType/KeyInfo/X509Data
diagram
namespace http://www.w3.org/2000/09/xmldsig#
children X509Certificate
annotation
documentation 
Informacion del Certificado Publico
source
<xs:element name="X509Data">
  <xs:annotation>
    <xs:documentation>Informacion del Certificado Publico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="X509Certificate" type="ds:base64Binary">
        <xs:annotation>
          <xs:documentation>Certificado Publico</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ds:SignatureType/KeyInfo/X509Data/X509Certificate
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type xs:base64Binary
annotation
documentation 
Certificado Publico
source
<xs:element name="X509Certificate" type="ds:base64Binary">
  <xs:annotation>
    <xs:documentation>Certificado Publico</xs:documentation>
  </xs:annotation>
</xs:element>

complexType SiiLce:Periodo
diagram
namespace http://www.sii.cl/SiiLce
children Inicial Final
used by
elements SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/PeriodoTributario SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/PeriodoTributario
annotation
documentation 
lapso de tiempo. En forma AAAA-MM hasta AAAA-MM
source
<xs:complexType name="Periodo">
  <xs:annotation>
    <xs:documentation>lapso de tiempo. En forma AAAA-MM hasta AAAA-MM</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="Inicial" type="xs:gYearMonth">
      <xs:annotation>
        <xs:documentation>Inicio del Periodo. En formato AAAA-MM</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="Final" type="xs:gYearMonth">
      <xs:annotation>
        <xs:documentation>Final del Periodo. Formato AAAA-MM</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element SiiLce:Periodo/Inicial
diagram
namespace http://www.sii.cl/SiiLce
type xs:gYearMonth
annotation
documentation 
Inicio del Periodo. En formato AAAA-MM
source
<xs:element name="Inicial" type="xs:gYearMonth">
  <xs:annotation>
    <xs:documentation>Inicio del Periodo. En formato AAAA-MM</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:Periodo/Final
diagram
namespace http://www.sii.cl/SiiLce
type xs:gYearMonth
annotation
documentation 
Final del Periodo. Formato AAAA-MM
source
<xs:element name="Final" type="xs:gYearMonth">
  <xs:annotation>
    <xs:documentation>Final del Periodo. Formato AAAA-MM</xs:documentation>
  </xs:annotation>
</xs:element>

simpleType SiiLce:DoctoType
namespace http://www.sii.cl/SiiLce
type restriction of xs:positiveInteger
facets
enumeration 30
enumeration 32
enumeration 33
enumeration 34
enumeration 35
enumeration 38
enumeration 39
enumeration 40
enumeration 41
enumeration 43
enumeration 45
enumeration 46
enumeration 55
enumeration 56
enumeration 60
enumeration 61
enumeration 101
enumeration 102
enumeration 103
enumeration 104
enumeration 105
enumeration 106
enumeration 108
enumeration 109
enumeration 900
enumeration 901
enumeration 902
enumeration 903
enumeration 904
enumeration 905
enumeration 906
enumeration 907
enumeration 909
enumeration 910
enumeration 911
enumeration 914
enumeration 918
enumeration 919
enumeration 920
enumeration 921
enumeration 922
enumeration 110
enumeration 111
enumeration 112
enumeration 924
enumeration 500
enumeration 501
annotation
documentation 
Tipos de Documentos
source
<xs:simpleType name="DoctoType">
  <xs:annotation>
    <xs:documentation>Tipos de Documentos</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:positiveInteger">
    <xs:enumeration value="30"/>
    <xs:enumeration value="32"/>
    <xs:enumeration value="33"/>
    <xs:enumeration value="34"/>
    <xs:enumeration value="35"/>
    <xs:enumeration value="38"/>
    <xs:enumeration value="39"/>
    <xs:enumeration value="40"/>
    <xs:enumeration value="41"/>
    <xs:enumeration value="43"/>
    <xs:enumeration value="45"/>
    <xs:enumeration value="46"/>
    <xs:enumeration value="55"/>
    <xs:enumeration value="56"/>
    <xs:enumeration value="60"/>
    <xs:enumeration value="61"/>
    <xs:enumeration value="101"/>
    <xs:enumeration value="102"/>
    <xs:enumeration value="103"/>
    <xs:enumeration value="104"/>
    <xs:enumeration value="105"/>
    <xs:enumeration value="106"/>
    <xs:enumeration value="108"/>
    <xs:enumeration value="109"/>
    <xs:enumeration value="900"/>
    <xs:enumeration value="901"/>
    <xs:enumeration value="902"/>
    <xs:enumeration value="903"/>
    <xs:enumeration value="904"/>
    <xs:enumeration value="905"/>
    <xs:enumeration value="906"/>
    <xs:enumeration value="907"/>
    <xs:enumeration value="909"/>
    <xs:enumeration value="910"/>
    <xs:enumeration value="911"/>
    <xs:enumeration value="914"/>
    <xs:enumeration value="918"/>
    <xs:enumeration value="919"/>
    <xs:enumeration value="920"/>
    <xs:enumeration value="921"/>
    <xs:enumeration value="922"/>
    <xs:enumeration value="110"/>
    <xs:enumeration value="111"/>
    <xs:enumeration value="112"/>
    <xs:enumeration value="924"/>
    <xs:enumeration value="500"/>
    <xs:enumeration value="501"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:FolioType
namespace http://www.sii.cl/SiiLce
type restriction of xs:positiveInteger
used by
element LceEnvioLibros/DocumentoEnvioLibros/Notificacion/Folio
facets
totalDigits 10
annotation
documentation 
Folio de DTE - 10 digitos
source
<xs:simpleType name="FolioType">
  <xs:annotation>
    <xs:documentation>Folio de DTE - 10 digitos</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="10"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:ImptoType
namespace http://www.sii.cl/SiiLce
type restriction of xs:positiveInteger
facets
enumeration 14
enumeration 15
enumeration 16
enumeration 17
enumeration 18
enumeration 19
enumeration 23
enumeration 24
enumeration 25
enumeration 26
enumeration 27
enumeration 28
enumeration 29
enumeration 30
enumeration 31
enumeration 32
enumeration 33
enumeration 34
enumeration 35
enumeration 36
enumeration 37
enumeration 38
enumeration 39
enumeration 40
enumeration 44
enumeration 45
enumeration 51
enumeration 52
annotation
documentation 
Impuestos Adicionales
source
<xs:simpleType name="ImptoType">
  <xs:annotation>
    <xs:documentation>Impuestos Adicionales</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:positiveInteger">
    <xs:enumeration value="14">
      <xs:annotation>
        <xs:documentation>IVA Margen de Comercializacion</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="15">
      <xs:annotation>
        <xs:documentation>IVA Retenido Total</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="16">
      <xs:annotation>
        <xs:documentation>IVA Retenido Parcial</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="17">
      <xs:annotation>
        <xs:documentation>IVA Anticipado Faenamiento Carne</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="18">
      <xs:annotation>
        <xs:documentation>IVA Anticipado Carne</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="19">
      <xs:annotation>
        <xs:documentation>IVA Anticipado Harina</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="23">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 37 Letras a, b, c</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="24">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 42 Ley 825/74 Letra a</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="25">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 42 Letra c</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="26">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 42 Letra c</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="27">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 42 Letra d y e</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="28">
      <xs:annotation>
        <xs:documentation>Impuesto Especifico Diesel</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="29">
      <xs:annotation>
        <xs:documentation>Recuperacion Impuesto Especifico Diesel Transportistas</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="30">
      <xs:annotation>
        <xs:documentation>IVA Retenido Legumbres</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="31">
      <xs:annotation>
        <xs:documentation>IVA Retenido Silvestres</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="32">
      <xs:annotation>
        <xs:documentation>IVA Retenido Ganado</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="33">
      <xs:annotation>
        <xs:documentation>IVA Retenido Madera</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="34">
      <xs:annotation>
        <xs:documentation>IVA Retenido Trigo</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="35">
      <xs:annotation>
        <xs:documentation>Impuesto Especifico Gasolina</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="36">
      <xs:annotation>
        <xs:documentation>IVA Retenido Arroz</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="37">
      <xs:annotation>
        <xs:documentation>IVA Retenido Hidrobiologicas</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="38">
      <xs:annotation>
        <xs:documentation>IVA Retenido Chatarra</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="39">
      <xs:annotation>
        <xs:documentation>IVA Retenido PPA</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="40">
      <xs:annotation>
        <xs:documentation>IVA Retenido Opcional</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="44">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 37 Letras e, f, g y h</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="45">
      <xs:annotation>
        <xs:documentation>Impuesto Art. 37 Letra j</xs:documentation>
      </xs:annotation>
    </xs:enumeration>
    <xs:enumeration value="51"/>
    <xs:enumeration value="52"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:MntImpType
namespace http://www.sii.cl/SiiLce
type restriction of xs:positiveInteger
facets
totalDigits 18
annotation
documentation 
Monto 18 digitos (> cero)
source
<xs:simpleType name="MntImpType">
  <xs:annotation>
    <xs:documentation>Monto 18 digitos (> cero)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:positiveInteger">
    <xs:totalDigits value="18"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:MontoSinDecType
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 18
annotation
documentation 
Monto 18 digitos (mayor o igual a cero)
source
<xs:simpleType name="MontoSinDecType">
  <xs:annotation>
    <xs:documentation>Monto 18 digitos (mayor o igual a cero)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:nonNegativeInteger">
    <xs:totalDigits value="18"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:MontoType
namespace http://www.sii.cl/SiiLce
type restriction of xs:decimal
used by
elements SiiLce:LceMayor/Cuenta/Apertura/Debe SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Debe SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Debe SiiLce:LceMayor/Cuenta/Movimientos/Debe SiiLce:LceBalance/DocumentoBalance/Cuenta/Debe SiiLce:LceDiario/Comprobante/Movimientos/Debe SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Haber SiiLce:LceBalance/DocumentoBalance/Cuenta/Haber SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Haber SiiLce:LceDiario/Comprobante/Movimientos/Haber SiiLce:LceMayor/Cuenta/Movimientos/Haber SiiLce:LceMayor/Cuenta/Apertura/Haber SiiLce:LceMayor/Cuenta/Apertura/SaldoAcreedor SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoAcreedor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoAcreedor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoAcreedor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoDeudor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoDeudor SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoDeudor SiiLce:LceMayor/Cuenta/Apertura/SaldoDeudor SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/SumaValorComprobante SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/SumaValorComprobante SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/ValorAcumulado SiiLce:LceDiario/ValorApertura SiiLce:LceDiario/Comprobante/ValorComprobante
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Monto de 18 digitos y 4 decimales
source
<xs:simpleType name="MontoType">
  <xs:annotation>
    <xs:documentation>Monto de 18 digitos y 4 decimales</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:decimal">
    <xs:totalDigits value="18"/>
    <xs:fractionDigits value="4"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:PctType
namespace http://www.sii.cl/SiiLce
type restriction of xs:decimal
facets
minInclusive 0
maxInclusive 100
totalDigits 5
fractionDigits 2
annotation
documentation 
Porcentaje (3 enteros y 2 decimales)
source
<xs:simpleType name="PctType">
  <xs:annotation>
    <xs:documentation>Porcentaje (3 enteros y 2 decimales)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:decimal">
    <xs:totalDigits value="5"/>
    <xs:fractionDigits value="2"/>
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="100"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:RUTType
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
used by
elements SiiLce:LceMayor/Cuenta/Movimientos/Rut SiiLce:LceDiario/Comprobante/Movimientos/Rut LceEnvioLibros/DocumentoEnvioLibros/RutContribuyente SiiLce:LceCoCertif/DocumentoCoCertif/RutContribuyente SiiLce:LceBalance/DocumentoBalance/Identificacion/RutContribuyente SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion/RutContribuyente SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/RutContribuyente SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/RutContribuyente SiiLce:LceCal/DocumentoCal/RutDistribuidor LceEnvioLibros/DocumentoEnvioLibros/RutEnvia SiiLce:LceBalance/DocumentoBalance/RutFirma SiiLce:LceDiccionario/DocumentoDiccionario/RutFirma SiiLce:LceMayorRes/DocumentoMayorRes/RutFirma SiiLce:LceDiarioRes/DocumentoDiarioRes/RutFirma SiiLce:LceCoCertif/DocumentoCoCertif/RutFirmanteDistribuidor
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
Rol Unico Tributario (99..99-X)
source
<xs:simpleType name="RUTType">
  <xs:annotation>
    <xs:documentation>Rol Unico Tributario (99..99-X)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:maxLength value="10"/>
    <xs:minLength value="3"/>
    <xs:pattern value="[0-9]+-([0-9]|K)"/>
  </xs:restriction>
</xs:simpleType>

simpleType SiiLce:ValorType
namespace http://www.sii.cl/SiiLce
type restriction of xs:integer
facets
totalDigits 18
annotation
documentation 
Monto 18 digitos (positivo o negativo)
source
<xs:simpleType name="ValorType">
  <xs:annotation>
    <xs:documentation>Monto 18 digitos (positivo o negativo)</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="18"/>
  </xs:restriction>
</xs:simpleType>

element SiiLce:LceMayorRes
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoMayorRes ds:Signature
used by
element SiiLce:LceMayor
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion del Resumen del Mayor
source
<xs:element name="LceMayorRes">
  <xs:annotation>
    <xs:documentation>Informacion del Resumen del Mayor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoMayorRes">
        <xs:annotation>
          <xs:documentation>Informacion de Resumen de Libro Mayor</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Identificacion">
              <xs:annotation>
                <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="RutContribuyente" type="SiiLce:RUTType">
                    <xs:annotation>
                      <xs:documentation>RUT contribuyente.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
                    <xs:annotation>
                      <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Moneda" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Codigo de Moneda</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Cuenta" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Informacion de cada cuenta.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="CodigoCuenta">
                    <xs:annotation>
                      <xs:documentation>Codigo Cuenta Contable</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="20"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CantidadMovimientos">
                    <xs:annotation>
                      <xs:documentation>Cantidad de movimientos para este codigo de cuenta.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Cierre">
                    <xs:annotation>
                      <xs:documentation>Cierre de la cuenta.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MontosPeriodo" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Montos del Periodo</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:choice>
                                <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                                  <xs:annotation>
                                    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                                  <xs:annotation>
                                    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:choice>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="MontosAcumulado">
                          <xs:annotation>
                            <xs:documentation>Montos Acumulados</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:choice>
                                <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                                  <xs:annotation>
                                    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                                  <xs:annotation>
                                    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:choice>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="RutFirma" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT que firma este Documento</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma">
              <xs:annotation>
                <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:dateTime"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes
diagram
namespace http://www.sii.cl/SiiLce
children Identificacion Cuenta RutFirma TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Informacion de Resumen de Libro Mayor
source
<xs:element name="DocumentoMayorRes">
  <xs:annotation>
    <xs:documentation>Informacion de Resumen de Libro Mayor</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Identificacion">
        <xs:annotation>
          <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT contribuyente.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
              <xs:annotation>
                <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Moneda" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Codigo de Moneda</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Cuenta" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Informacion de cada cuenta.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CodigoCuenta">
              <xs:annotation>
                <xs:documentation>Codigo Cuenta Contable</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="20"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CantidadMovimientos">
              <xs:annotation>
                <xs:documentation>Cantidad de movimientos para este codigo de cuenta.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Cierre">
              <xs:annotation>
                <xs:documentation>Cierre de la cuenta.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MontosPeriodo" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Montos del Periodo</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:choice>
                          <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                            <xs:annotation>
                              <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                            <xs:annotation>
                              <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:choice>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="MontosAcumulado">
                    <xs:annotation>
                      <xs:documentation>Montos Acumulados</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:choice>
                          <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                            <xs:annotation>
                              <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                            <xs:annotation>
                              <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:choice>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="RutFirma" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT que firma este Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma">
        <xs:annotation>
          <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:dateTime"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion
diagram
namespace http://www.sii.cl/SiiLce
children RutContribuyente PeriodoTributario Moneda Rectificatoria
annotation
documentation 
Identificacion del Envio del Libro Electronico
source
<xs:element name="Identificacion">
  <xs:annotation>
    <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT contribuyente.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
        <xs:annotation>
          <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Moneda" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Codigo de Moneda</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT contribuyente.
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT contribuyente.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/PeriodoTributario
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:Periodo
children Inicial Final
annotation
documentation 
Periodo Tributario del Libro Electronico 
source
<xs:element name="PeriodoTributario" type="SiiLce:Periodo">
  <xs:annotation>
    <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/Moneda
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 10
annotation
documentation 
Codigo de Moneda
source
<xs:element name="Moneda" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Codigo de Moneda</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/Rectificatoria
diagram
namespace http://www.sii.cl/SiiLce
type xs:positiveInteger
annotation
documentation 
Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.
source
<xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta
diagram
namespace http://www.sii.cl/SiiLce
children CodigoCuenta CantidadMovimientos Cierre
annotation
documentation 
Informacion de cada cuenta.
source
<xs:element name="Cuenta" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Informacion de cada cuenta.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CodigoCuenta">
        <xs:annotation>
          <xs:documentation>Codigo Cuenta Contable</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="20"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CantidadMovimientos">
        <xs:annotation>
          <xs:documentation>Cantidad de movimientos para este codigo de cuenta.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Cierre">
        <xs:annotation>
          <xs:documentation>Cierre de la cuenta.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MontosPeriodo" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Montos del Periodo</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="MontosAcumulado">
              <xs:annotation>
                <xs:documentation>Montos Acumulados</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                      <xs:annotation>
                        <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/CodigoCuenta
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 20
annotation
documentation 
Codigo Cuenta Contable
source
<xs:element name="CodigoCuenta">
  <xs:annotation>
    <xs:documentation>Codigo Cuenta Contable</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/CantidadMovimientos
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 10
annotation
documentation 
Cantidad de movimientos para este codigo de cuenta.
source
<xs:element name="CantidadMovimientos">
  <xs:annotation>
    <xs:documentation>Cantidad de movimientos para este codigo de cuenta.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre
diagram
namespace http://www.sii.cl/SiiLce
children MontosPeriodo MontosAcumulado
annotation
documentation 
Cierre de la cuenta.
source
<xs:element name="Cierre">
  <xs:annotation>
    <xs:documentation>Cierre de la cuenta.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MontosPeriodo" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Montos del Periodo</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:choice>
              <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MontosAcumulado">
        <xs:annotation>
          <xs:documentation>Montos Acumulados</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:choice>
              <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
                <xs:annotation>
                  <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo
diagram
namespace http://www.sii.cl/SiiLce
children Debe Haber SaldoDeudor SaldoAcreedor
annotation
documentation 
Montos del Periodo
source
<xs:element name="MontosPeriodo" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Montos del Periodo</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Sumatoria de los "Debe" de los movimientos.
source
<xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Sumatoria de los "Debe" de los movimientos.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Sumatoria de los "Haber" de los movimientos.
source
<xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Sumatoria de los "Haber" de los movimientos.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoDeudor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"
source
<xs:element name="SaldoDeudor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoAcreedor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"
source
<xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado
diagram
namespace http://www.sii.cl/SiiLce
children Debe Haber SaldoDeudor SaldoAcreedor
annotation
documentation 
Montos Acumulados
source
<xs:element name="MontosAcumulado">
  <xs:annotation>
    <xs:documentation>Montos Acumulados</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="SaldoDeudor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
          <xs:annotation>
            <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Debe
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.
source
<xs:element name="Debe" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Corresponde a la suma de "Debe" de Apertura mas "Debe" de MontosPeriodo.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Haber
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.
source
<xs:element name="Haber" type="SiiLce:MontoType" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Corresponde a la suma de "Haber" de Apertura mas "Haber" de MontosPeriodo.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoDeudor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"
source
<xs:element name="SaldoDeudor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Debe es mayor que Haber. Corresponde a "Debe - Haber"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoAcreedor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"
source
<xs:element name="SaldoAcreedor" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Solo si Haber es mayor de Debe. Corresponde "Haber - Debe"</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/RutFirma
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT que firma este Documento
source
<xs:element name="RutFirma" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT que firma este Documento</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceMayorRes/DocumentoMayorRes/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:dateTime
annotation
documentation 
Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica
source
<xs:element name="TmstFirma">
  <xs:annotation>
    <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:dateTime"/>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoDiarioRes ds:Signature
used by
element SiiLce:LceDiario
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Informacion de resumen del Diario
source
<xs:element name="LceDiarioRes">
  <xs:annotation>
    <xs:documentation>Informacion de resumen del Diario</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoDiarioRes">
        <xs:annotation>
          <xs:documentation>Informacion de de resumen del Libro Diario</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Identificacion">
              <xs:annotation>
                <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="RutContribuyente" type="SiiLce:RUTType">
                    <xs:annotation>
                      <xs:documentation>RUT contribuyente.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
                    <xs:annotation>
                      <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Moneda" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Codigo de Moneda</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:token">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="RegistroDiario" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="FechaContable" type="xs:date">
                    <xs:annotation>
                      <xs:documentation>Fecha Contable(AAAA-MM-DD)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="CantidadComprobantes">
                    <xs:annotation>
                      <xs:documentation>Cantidad de Comprobantes en este dia</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CantidadMovimientos">
                    <xs:annotation>
                      <xs:documentation>Cantidad de movimientos</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
                    <xs:annotation>
                      <xs:documentation>Sumatoria de los Valores Comprobante.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Cierre">
              <xs:annotation>
                <xs:documentation>Cierre del Libro.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="CantidadComprobantes">
                    <xs:annotation>
                      <xs:documentation>Cantidad de Comprobantes en el periodo.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CantidadMovimientos">
                    <xs:annotation>
                      <xs:documentation>Cantidad de movimientos del periodo</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:nonNegativeInteger">
                        <xs:totalDigits value="10"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
                    <xs:annotation>
                      <xs:documentation>Sumatoria de los Valores Comprobante del periodo.</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="ValorAcumulado" type="SiiLce:MontoType">
                    <xs:annotation>
                      <xs:documentation>Valor Acumulado. Es la sumatoria de Valor Apertura mas "Suma Valor Comprobante".</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="RutFirma" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT que firma este Documento</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma">
              <xs:annotation>
                <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:dateTime"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes
diagram
namespace http://www.sii.cl/SiiLce
children Identificacion RegistroDiario Cierre RutFirma TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Informacion de de resumen del Libro Diario
source
<xs:element name="DocumentoDiarioRes">
  <xs:annotation>
    <xs:documentation>Informacion de de resumen del Libro Diario</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Identificacion">
        <xs:annotation>
          <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutContribuyente" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT contribuyente.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
              <xs:annotation>
                <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Moneda" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Codigo de Moneda</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="RegistroDiario" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="FechaContable" type="xs:date">
              <xs:annotation>
                <xs:documentation>Fecha Contable(AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="CantidadComprobantes">
              <xs:annotation>
                <xs:documentation>Cantidad de Comprobantes en este dia</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CantidadMovimientos">
              <xs:annotation>
                <xs:documentation>Cantidad de movimientos</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Sumatoria de los Valores Comprobante.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Cierre">
        <xs:annotation>
          <xs:documentation>Cierre del Libro.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CantidadComprobantes">
              <xs:annotation>
                <xs:documentation>Cantidad de Comprobantes en el periodo.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CantidadMovimientos">
              <xs:annotation>
                <xs:documentation>Cantidad de movimientos del periodo</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:nonNegativeInteger">
                  <xs:totalDigits value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Sumatoria de los Valores Comprobante del periodo.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ValorAcumulado" type="SiiLce:MontoType">
              <xs:annotation>
                <xs:documentation>Valor Acumulado. Es la sumatoria de Valor Apertura mas "Suma Valor Comprobante".</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="RutFirma" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT que firma este Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma">
        <xs:annotation>
          <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:dateTime"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion
diagram
namespace http://www.sii.cl/SiiLce
children RutContribuyente PeriodoTributario Moneda Rectificatoria
annotation
documentation 
Identificacion del Envio del Libro Electronico
source
<xs:element name="Identificacion">
  <xs:annotation>
    <xs:documentation>Identificacion del Envio del Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutContribuyente" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT contribuyente.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodoTributario" type="SiiLce:Periodo">
        <xs:annotation>
          <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Moneda" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Codigo de Moneda</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:minLength value="1"/>
            <xs:maxLength value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/RutContribuyente
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT contribuyente.
source
<xs:element name="RutContribuyente" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT contribuyente.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/PeriodoTributario
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:Periodo
children Inicial Final
annotation
documentation 
Periodo Tributario del Libro Electronico 
source
<xs:element name="PeriodoTributario" type="SiiLce:Periodo">
  <xs:annotation>
    <xs:documentation>Periodo Tributario del Libro Electronico </xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/Moneda
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:token
facets
minLength 1
maxLength 10
annotation
documentation 
Codigo de Moneda
source
<xs:element name="Moneda" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Codigo de Moneda</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
      <xs:maxLength value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/Rectificatoria
diagram
namespace http://www.sii.cl/SiiLce
type xs:positiveInteger
annotation
documentation 
Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.
source
<xs:element name="Rectificatoria" type="xs:positiveInteger" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Si un Libro se emite mas de una vez se debe anotar la secuencia de reemisión   que corresponda, partiendo del número 1.El mismo número debe estar en el Comprobante de Cierre.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario
diagram
namespace http://www.sii.cl/SiiLce
children FechaContable CantidadComprobantes CantidadMovimientos SumaValorComprobante
annotation
documentation 
Detalle de Documentos que Componen el Libro Electronico
source
<xs:element name="RegistroDiario" minOccurs="0" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>Detalle de Documentos que Componen el Libro Electronico</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="FechaContable" type="xs:date">
        <xs:annotation>
          <xs:documentation>Fecha Contable(AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CantidadComprobantes">
        <xs:annotation>
          <xs:documentation>Cantidad de Comprobantes en este dia</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CantidadMovimientos">
        <xs:annotation>
          <xs:documentation>Cantidad de movimientos</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Sumatoria de los Valores Comprobante.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/FechaContable
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha Contable(AAAA-MM-DD)
source
<xs:element name="FechaContable" type="xs:date">
  <xs:annotation>
    <xs:documentation>Fecha Contable(AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/CantidadComprobantes
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 10
annotation
documentation 
Cantidad de Comprobantes en este dia
source
<xs:element name="CantidadComprobantes">
  <xs:annotation>
    <xs:documentation>Cantidad de Comprobantes en este dia</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/CantidadMovimientos
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 10
annotation
documentation 
Cantidad de movimientos
source
<xs:element name="CantidadMovimientos">
  <xs:annotation>
    <xs:documentation>Cantidad de movimientos</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/SumaValorComprobante
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Sumatoria de los Valores Comprobante.
source
<xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Sumatoria de los Valores Comprobante.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre
diagram
namespace http://www.sii.cl/SiiLce
children CantidadComprobantes CantidadMovimientos SumaValorComprobante ValorAcumulado
annotation
documentation 
Cierre del Libro.
source
<xs:element name="Cierre">
  <xs:annotation>
    <xs:documentation>Cierre del Libro.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CantidadComprobantes">
        <xs:annotation>
          <xs:documentation>Cantidad de Comprobantes en el periodo.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CantidadMovimientos">
        <xs:annotation>
          <xs:documentation>Cantidad de movimientos del periodo</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:totalDigits value="10"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Sumatoria de los Valores Comprobante del periodo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ValorAcumulado" type="SiiLce:MontoType">
        <xs:annotation>
          <xs:documentation>Valor Acumulado. Es la sumatoria de Valor Apertura mas "Suma Valor Comprobante".</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/CantidadComprobantes
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 10
annotation
documentation 
Cantidad de Comprobantes en el periodo.
source
<xs:element name="CantidadComprobantes">
  <xs:annotation>
    <xs:documentation>Cantidad de Comprobantes en el periodo.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/CantidadMovimientos
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:nonNegativeInteger
facets
totalDigits 10
annotation
documentation 
Cantidad de movimientos del periodo
source
<xs:element name="CantidadMovimientos">
  <xs:annotation>
    <xs:documentation>Cantidad de movimientos del periodo</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:totalDigits value="10"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/SumaValorComprobante
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Sumatoria de los Valores Comprobante del periodo.
source
<xs:element name="SumaValorComprobante" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Sumatoria de los Valores Comprobante del periodo.</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/ValorAcumulado
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:MontoType
facets
totalDigits 18
fractionDigits 4
annotation
documentation 
Valor Acumulado. Es la sumatoria de Valor Apertura mas "Suma Valor Comprobante".
source
<xs:element name="ValorAcumulado" type="SiiLce:MontoType">
  <xs:annotation>
    <xs:documentation>Valor Acumulado. Es la sumatoria de Valor Apertura mas "Suma Valor Comprobante".</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/RutFirma
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT que firma este Documento
source
<xs:element name="RutFirma" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT que firma este Documento</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceDiarioRes/DocumentoDiarioRes/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:dateTime
annotation
documentation 
Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica
source
<xs:element name="TmstFirma">
  <xs:annotation>
    <xs:documentation>Fecha y Hora en formato AAAA-MM-DDTHH24:MI:SS de la Firma Electronica</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:dateTime"/>
  </xs:simpleType>
</xs:element>

element SiiLce:LceCal
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoCal ds:Signature
used by
elements SiiLce:LceCoCertif/DocumentoCoCertif LceEnvioLibros/LCE/NoCerrado
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Certificado Autorizacion de Libros, generado por el SII
source
<xs:element name="LceCal">
  <xs:annotation>
    <xs:documentation>Certificado Autorizacion de Libros, generado por el SII</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoCal">
        <xs:annotation>
          <xs:documentation>Documento de Cal</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="RutDistribuidor" type="SiiLce:RUTType">
              <xs:annotation>
                <xs:documentation>RUT Distribuidor</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TipoCertificado">
              <xs:annotation>
                <xs:documentation>Tipo Certificado. C = Certificacion, P=Produccion</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="C">
                    <xs:annotation>
                      <xs:documentation>Certificación. 
       Se utiliza para efectuar las pruebas de archivos</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="P">
                    <xs:annotation>
                      <xs:documentation>Producción.
 Lo entrega el SII, una vez que se hayan efectuado las pruebas respectivas</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Clase">
              <xs:annotation>
                <xs:documentation>1:Contribuyente, 2:Holding, 3:Empresa de Software.,4:Prestador de Servicios Contables.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Contribuyente</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Holding</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Empresa Software</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Prestador de Servicios Contables</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="TipoLCE">
              <xs:annotation>
                <xs:documentation>Tipo del Libro Contable. </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:positiveInteger">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Contable. Incluye, Diario, Mayor, Balance,  Inventarios y Balance </xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Remuneraciones</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Honorarios</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Registro de Existencias</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Activo Fijo</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>Compra y Venta</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FchEmision" type="xs:date">
              <xs:annotation>
                <xs:documentation>Fecha de Emision del CAL(AAAA-MM-DD)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PeriodoVigencia" type="xs:gYear">
              <xs:annotation>
                <xs:documentation>En caso que Clase = 3 corresponde al año en que es valido hacer envios con este CAL, de lo contrario es año de inicio para realizar envios. ( Formato AAAA)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="TmstFirma" type="xs:dateTime">
              <xs:annotation>
                <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ID" type="xs:ID" use="required"/>
        </xs:complexType>
      </xs:element>
      <xs:element ref="ds:Signature">
        <xs:annotation>
          <xs:documentation>Firma Digital sobre Documento</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceCal/DocumentoCal
diagram
namespace http://www.sii.cl/SiiLce
children RutDistribuidor TipoCertificado Clase TipoLCE FchEmision PeriodoVigencia TmstFirma
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Documento de Cal
source
<xs:element name="DocumentoCal">
  <xs:annotation>
    <xs:documentation>Documento de Cal</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="RutDistribuidor" type="SiiLce:RUTType">
        <xs:annotation>
          <xs:documentation>RUT Distribuidor</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TipoCertificado">
        <xs:annotation>
          <xs:documentation>Tipo Certificado. C = Certificacion, P=Produccion</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="C">
              <xs:annotation>
                <xs:documentation>Certificación. 
       Se utiliza para efectuar las pruebas de archivos</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="P">
              <xs:annotation>
                <xs:documentation>Producción.
 Lo entrega el SII, una vez que se hayan efectuado las pruebas respectivas</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Clase">
        <xs:annotation>
          <xs:documentation>1:Contribuyente, 2:Holding, 3:Empresa de Software.,4:Prestador de Servicios Contables.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Contribuyente</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Holding</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Empresa Software</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Prestador de Servicios Contables</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="TipoLCE">
        <xs:annotation>
          <xs:documentation>Tipo del Libro Contable. </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:positiveInteger">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Contable. Incluye, Diario, Mayor, Balance,  Inventarios y Balance </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Remuneraciones</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Honorarios</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Registro de Existencias</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Activo Fijo</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>Compra y Venta</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FchEmision" type="xs:date">
        <xs:annotation>
          <xs:documentation>Fecha de Emision del CAL(AAAA-MM-DD)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodoVigencia" type="xs:gYear">
        <xs:annotation>
          <xs:documentation>En caso que Clase = 3 corresponde al año en que es valido hacer envios con este CAL, de lo contrario es año de inicio para realizar envios. ( Formato AAAA)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TmstFirma" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element SiiLce:LceCal/DocumentoCal/RutDistribuidor
diagram
namespace http://www.sii.cl/SiiLce
type SiiLce:RUTType
facets
minLength 3
maxLength 10
pattern [0-9]+-([0-9]|K)
annotation
documentation 
RUT Distribuidor
source
<xs:element name="RutDistribuidor" type="SiiLce:RUTType">
  <xs:annotation>
    <xs:documentation>RUT Distribuidor</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCal/DocumentoCal/TipoCertificado
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
enumeration C
enumeration P
annotation
documentation 
Tipo Certificado. C = Certificacion, P=Produccion
source
<xs:element name="TipoCertificado">
  <xs:annotation>
    <xs:documentation>Tipo Certificado. C = Certificacion, P=Produccion</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:documentation>Certificación. 
       Se utiliza para efectuar las pruebas de archivos</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:documentation>Producción.
 Lo entrega el SII, una vez que se hayan efectuado las pruebas respectivas</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceCal/DocumentoCal/Clase
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:string
facets
enumeration 1
enumeration 2
enumeration 3
enumeration 4
annotation
documentation 
1:Contribuyente, 2:Holding, 3:Empresa de Software.,4:Prestador de Servicios Contables.
source
<xs:element name="Clase">
  <xs:annotation>
    <xs:documentation>1:Contribuyente, 2:Holding, 3:Empresa de Software.,4:Prestador de Servicios Contables.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Contribuyente</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Holding</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Empresa Software</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Prestador de Servicios Contables</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceCal/DocumentoCal/TipoLCE
diagram
namespace http://www.sii.cl/SiiLce
type restriction of xs:positiveInteger
facets
enumeration 1
enumeration 2
enumeration 3
enumeration 4
enumeration 5
enumeration 6
annotation
documentation 
Tipo del Libro Contable. 
source
<xs:element name="TipoLCE">
  <xs:annotation>
    <xs:documentation>Tipo del Libro Contable. </xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="xs:positiveInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Contable. Incluye, Diario, Mayor, Balance,  Inventarios y Balance </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Remuneraciones</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Honorarios</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Registro de Existencias</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Activo Fijo</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Compra y Venta</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element SiiLce:LceCal/DocumentoCal/FchEmision
diagram
namespace http://www.sii.cl/SiiLce
type xs:date
annotation
documentation 
Fecha de Emision del CAL(AAAA-MM-DD)
source
<xs:element name="FchEmision" type="xs:date">
  <xs:annotation>
    <xs:documentation>Fecha de Emision del CAL(AAAA-MM-DD)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCal/DocumentoCal/PeriodoVigencia
diagram
namespace http://www.sii.cl/SiiLce
type xs:gYear
annotation
documentation 
En caso que Clase = 3 corresponde al año en que es valido hacer envios con este CAL, de lo contrario es año de inicio para realizar envios. ( Formato AAAA)
source
<xs:element name="PeriodoVigencia" type="xs:gYear">
  <xs:annotation>
    <xs:documentation>En caso que Clase = 3 corresponde al año en que es valido hacer envios con este CAL, de lo contrario es año de inicio para realizar envios. ( Formato AAAA)</xs:documentation>
  </xs:annotation>
</xs:element>

element SiiLce:LceCal/DocumentoCal/TmstFirma
diagram
namespace http://www.sii.cl/SiiLce
type xs:dateTime
annotation
documentation 
Fecha y Hora de la Firma 
source
<xs:element name="TmstFirma" type="xs:dateTime">
  <xs:annotation>
    <xs:documentation>Fecha y Hora de la Firma </xs:documentation>
  </xs:annotation>
</xs:element>


XML Schema documentation generated with
XMLSPY Schema Editor http://www.altova.com/xmlspy