Schema LceEnvioOblig_v10.xsd


element LceEnvioOblig
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoEnvioOblig ds:Signature
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Envio de información obligatoria de los Libros Contables Electronicos
source
<xs:element name="LceEnvioOblig">
  <xs:annotation>
    <xs:documentation>Envio de información obligatoria de los Libros Contables Electronicos</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentoEnvioOblig">
        <xs:annotation>
          <xs:documentation>Documento de Envio de Informacion obligatoria de LCE.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Caratula">
              <xs:annotation>
                <xs:documentation>Caratula</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="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:complexType>
            </xs:element>
            <xs:element ref="SiiLce:LceCoCierre" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Comprobante de Certificacion</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 LceEnvioOblig/DocumentoEnvioOblig
diagram
namespace http://www.sii.cl/SiiLce
children Caratula SiiLce:LceCoCierre
attributes
Name  Type  Use  Default  Fixed  Annotation
ID  xs:ID  required      
annotation
documentation 
Documento de Envio de Informacion obligatoria de LCE.
source
<xs:element name="DocumentoEnvioOblig">
  <xs:annotation>
    <xs:documentation>Documento de Envio de Informacion obligatoria de LCE.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="Caratula">
        <xs:annotation>
          <xs:documentation>Caratula</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="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:complexType>
      </xs:element>
      <xs:element ref="SiiLce:LceCoCierre" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Comprobante de Certificacion</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ID" type="xs:ID" use="required"/>
  </xs:complexType>
</xs:element>

element LceEnvioOblig/DocumentoEnvioOblig/Caratula
diagram
namespace http://www.sii.cl/SiiLce
children RutEnvia RutContribuyente TmstFirmaEnv
annotation
documentation 
Caratula
source
<xs:element name="Caratula">
  <xs:annotation>
    <xs:documentation>Caratula</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="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:complexType>
</xs:element>

element LceEnvioOblig/DocumentoEnvioOblig/Caratula/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 LceEnvioOblig/DocumentoEnvioOblig/Caratula/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 LceEnvioOblig/DocumentoEnvioOblig/Caratula/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 SiiLce:LceCoCierre
diagram
namespace http://www.sii.cl/SiiLce
children SiiLce:LceMayorRes SiiLce:LceDiarioRes SiiLce:LceBalance SiiLce:LceDiccionario SiiLce:LceCoCertif SiiLce:LceCal
used by
element LceEnvioOblig/DocumentoEnvioOblig
attributes
Name  Type  Use  Default  Fixed  Annotation
version  xs:decimal  required    1.0  
annotation
documentation 
Comprobante de Cierres
source
<xs:element name="LceCoCierre">
  <xs:annotation>
    <xs:documentation>Comprobante de Cierres</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="SiiLce:LceMayorRes"/>
        <xs:element ref="SiiLce:LceDiarioRes"/>
        <xs:element ref="SiiLce:LceBalance"/>
        <xs:element ref="SiiLce:LceDiccionario"/>
      </xs:choice>
      <xs:choice>
        <xs:element ref="SiiLce:LceCoCertif">
          <xs:annotation>
            <xs:documentation>Comprobante de Certificacion</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="SiiLce:LceCal"/>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
  </xs:complexType>
</xs:element>

element ds:Signature
diagram
namespace http://www.w3.org/2000/09/xmldsig#
type ds:SignatureType
children SignedInfo SignatureValue KeyInfo
used by
elements LceEnvioOblig 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
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:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Debe SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Debe SiiLce:LceBalance/DocumentoBalance/Cuenta/Debe SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/Haber SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/Haber SiiLce:LceBalance/DocumentoBalance/Cuenta/Haber SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoAcreedor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoAcreedor SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoAcreedor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosPeriodo/SaldoDeudor SiiLce:LceMayorRes/DocumentoMayorRes/Cuenta/Cierre/MontosAcumulado/SaldoDeudor SiiLce:LceBalance/DocumentoBalance/Cuenta/SaldoDeudor SiiLce:LceDiarioRes/DocumentoDiarioRes/RegistroDiario/SumaValorComprobante SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/SumaValorComprobante SiiLce:LceDiarioRes/DocumentoDiarioRes/Cierre/ValorAcumulado
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 LceEnvioOblig/DocumentoEnvioOblig/Caratula/RutContribuyente SiiLce:LceCoCertif/DocumentoCoCertif/RutContribuyente SiiLce:LceMayorRes/DocumentoMayorRes/Identificacion/RutContribuyente SiiLce:LceDiarioRes/DocumentoDiarioRes/Identificacion/RutContribuyente SiiLce:LceBalance/DocumentoBalance/Identificacion/RutContribuyente SiiLce:LceDiccionario/DocumentoDiccionario/Identificacion/RutContribuyente SiiLce:LceCal/DocumentoCal/RutDistribuidor LceEnvioOblig/DocumentoEnvioOblig/Caratula/RutEnvia SiiLce:LceMayorRes/DocumentoMayorRes/RutFirma SiiLce:LceDiarioRes/DocumentoDiarioRes/RutFirma SiiLce:LceBalance/DocumentoBalance/RutFirma SiiLce:LceDiccionario/DocumentoDiccionario/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:LceCal
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoCal ds:Signature
used by
elements SiiLce:LceCoCertif/DocumentoCoCertif SiiLce:LceCoCierre
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>

element SiiLce:LceCoCertif
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoCoCertif ds:Signature
used by
element SiiLce:LceCoCierre
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:LceMayorRes
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoMayorRes ds:Signature
used by
element SiiLce:LceCoCierre
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:LceCoCierre
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:LceBalance
diagram
namespace http://www.sii.cl/SiiLce
children DocumentoBalance ds:Signature
used by
element SiiLce:LceCoCierre
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 SiiLce:LceCoCierre
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>


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