Ver Mensaje Individual
  #57 (permalink)  
Antiguo 23/07/2010, 14:45
Beak
 
Fecha de Ingreso: febrero-2009
Mensajes: 67
Antigüedad: 15 años, 2 meses
Puntos: 3
Pregunta Respuesta: Factura electroncia sat mexico

estoy generando el xml desde visual
apenas estoy generando la estructura pero el validador me da este mensaje

Se presentaron los siguientes errores al validar la estructura del comprobante C:\factura2.xml
Error: cvc-complex-type.3.2.2: Attribute 'Fecha' is not allowed to appear in element 'Comprobante'.
Error: cvc-complex-type.3.2.2: Attribute 'Sello' is not allowed to appear in element 'Comprobante'.
Error: cvc-complex-type.3.2.2: Attribute 'Subtotal' is not allowed to appear in element 'Comprobante'.
Error: cvc-complex-type.4: Attribute 'fecha' must appear on element 'Comprobante'.
Error: cvc-complex-type.4: Attribute 'sello' must appear on element 'Comprobante'.
Error: cvc-complex-type.4: Attribute 'subTotal' must appear on element 'Comprobante'.
Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'emisor'. One of '{"http://www.sat.gob.mx/cfd/2":Emisor}' is expected.
Error: cvc-complex-type.3.2.2: Attribute 'Descripcion' is not allowed to appear in element 'Concepto'.
Error: cvc-complex-type.3.2.2: Attribute 'Importe' is not allowed to appear in element 'Concepto'.
Error: cvc-complex-type.4: Attribute 'descripcion' must appear on element 'Concepto'.
Error: cvc-complex-type.4: Attribute 'importe' must appear on element 'Concepto'.
Error: cvc-complex-type.3.2.2: Attribute 'Impuesto' is not allowed to appear in element 'Traslado'.
Error: cvc-complex-type.3.2.2: Attribute 'Importe' is not allowed to appear in element 'Traslado'.
Error: cvc-complex-type.4: Attribute 'impuesto' must appear on element 'Traslado'.
Error: cvc-complex-type.4: Attribute 'importe' must appear on element 'Traslado'.

al parecer esos elementos no esta permitidos en el elemento comprabante, es lo que entiendo
pero en el anexo 20 dice que si pueden ir, de hecho el xml de prueba del sat los tiene

pongo a continuacion el contenido de mi xml y el contenido del xml de prueba del sat
si alguien ya lo genero desde visual puede decirme si me falta algo

Código:
<?xml version="1.0" encoding="utf-8"?>
<Comprobante version="2.0" serie="ADBC" folio="1" Fecha="2010-06-07T18:20:50" Sello="aquivaelsello" noCertificado="10001200000000022517" 
Subtotal="200.00" total="232.00" noAprobacion="49" anoAprobacion="2008" 
formaDePago="UNA SOLA EXHIBICIÓN" descuento="0.00" metodoDePago="EFECTIVO" tipoDeComprobante="ingreso" xsi:schemaLocation="http://www.sat.gob.mx/cfd/2 http://www.sat.gob.mx/sitio_internet/cfd/2/cfdv2.xsd" xmlns="http://www.sat.gob.mx/cfd/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<emisor nombre="Pepito grillo S.A. de C.V." RFC="PGR991223SDF">
<DomicilioFiscal calle="Insurgentes" noExterior="45" Colonia="San Federico" Municipio="Benito Juarez" estado="DF" pais="Mexico" codigoPostal="51200" />
</emisor>
<receptor nombre="nombreRec" RFC="RFCRec"><Domicilio calle="calle" noExterior="122" noInterior="3-X" Colonia="San Simon" Localidad="G.A.M" Referencia="Tultitlan" estado="Distrito Federal" pais="Mexico" codigoPostal="52100" />
</receptor>
<Conceptos>
<Concepto cantidad="1.00" unidad="servicio" noIdentificacion="01" Descripcion="Asesoria en factura electronica" valorUnitario="200.00" Importe="200.00" />
</Conceptos>
<Impuestos totalImpuestosTrasladados="32.00">
<Traslados>
<Traslado Impuesto="IVA" Importe="32.00" tasa="16.00" />
</Traslados>
</Impuestos>
</Comprobante>

Código:
<?xml version="1.0" encoding="UTF-8"?>
<Comprobante serie="ABCD" version="2.0" folio="2" fecha="2010-05-03T14:11:36" sello="uMdBnVYNkXyaLDCHNDCtcrrPZQMEnoXu9dQTVJcEAzaDlvatxHaSh9W7C36yVjALzylWq/f1Aq3BiFxxFtGCwVC7F5AMornrBUT6Cm8xXHiwKjwLH2py33j1QCGAgrHxjJ1hcrLzq+33nAn46C7hBgj93V9LJvyGW7BSKN2E9+E=" 
noCertificado="20001000000100000377" subTotal="2000.00" total="2320.00" 
noAprobacion="49" anoAprobacion="2008" formaDePago="UNA SOLA EXHIBICIÓN" 
descuento="0.00" metodoDePago="EFECTIVO" tipoDeComprobante="ingreso" xsi:schemaLocation="http://www.sat.gob.mx/cfd/2 http://www.sat.gob.mx/sitio_internet/cfd/2/cfdv2.xsd " xmlns="http://www.sat.gob.mx/cfd/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Emisor rfc="PAMC660606ER9" nombre="CONTRIBUYENTE PRUEBASEIS PATERNOSEIS MATERNOSEIS">
    <DomicilioFiscal calle="PRUEBA SEIS" noExterior="6" noInterior="6" colonia="PUEBLA CENTRO" localidad="PUEBLA" municipio="PUEBLA" estado="PUEBLA" pais="MÉXICO" codigoPostal="72000"/>
  </Emisor>
  <Receptor rfc="CAUR390312S87" nombre="ROSA MARÍA CALDERÓN UIRIEGAS">
    <Domicilio calle="TOPOCHICO" noExterior="52" colonia="JARDINES DEL VALLE" estado="NUEVO LEON" pais="México" codigoPostal="95465"/>
  </Receptor>
  <Conceptos>
    <Concepto cantidad="1.00" unidad="Servicio" noIdentificacion="01" descripcion="Asesoria Fiscal y administrativa" valorUnitario="2000.00" importe="2000.00"/>
  </Conceptos>
  <Impuestos totalImpuestosTrasladados="320.00">
    <Traslados>
      <Traslado impuesto="IVA" importe="320.00" tasa="16.00"/>
    </Traslados>
  </Impuestos>
</Comprobante>