FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour AUXILIO NO SE FORMA BIEN EL XML
Posts: 225
Joined: Tue Feb 28, 2006 04:25 PM

AUXILIO NO SE FORMA BIEN EL XML

Posted: Thu Dec 31, 2009 03:39 PM

Amigos NECESITA AYUDA

Genero un archivo XMl como una cadena y creo los retornos de carro con una funcion
FUNC H
retu(chr(13)+chr(10))

cXml ='<?xml version="1.0" encoding="UTF-8"?>'+h()
cXml+='<rsm:CustomsDeclarationPeru '
lo veo bien desde el MED y con los editores XML

PERO el validador xsd no me lo reconoce , ma han enviado un archivo xml de ejemplo y veo que ese archivo se ve distinto
al mio en el bloc de notas. El ejemplo muestra los retornos de carro con cuadritos

<?xml version="1.0" encoding="UTF-8"?> ACA SALE UN CUADRITO '<rsm:CustomsDeclarationPeru

y todo junto

Mientras que el mio se ve en el bloc de notas sin cuadrito y separado en varias lineas

<?xml version="1.0" encoding="UTF-8"?>
<rsm:CustomsDeclarationPeru >

POR QUE SUCEDE ESTO , POR QUE EL MIO NO MUESTRA LOS CUADRITOS EN EL BLOC DE NOTAS Y POR QUE SALE SEPARADO
EN VARIAS LINEAS

GRACIAS POR LA AYUDA

ME INTERESA FW Y XHB POR SER OPEN SOURCE
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: AUXILIO NO SE FORMA BIEN EL XML

Posted: Sat Jan 02, 2010 09:30 AM

Vladimir,

Debe estar usando un retorno de carro distinto.

Prueba a cambiar tu funcion h() así:

FUNC H
retu(chr(10))

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 225
Joined: Tue Feb 28, 2006 04:25 PM

Re: AUXILIO NO SE FORMA BIEN EL XML

Posted: Sat Jan 02, 2010 03:58 PM

Gracias por contestar

Ya esta solucionado el probelma no era el retrono de carro si no la ruta del archivo .XSD

SALUDOS

ME INTERESA FW Y XHB POR SER OPEN SOURCE
Posts: 113
Joined: Wed Jan 10, 2007 08:43 PM

Re: AUXILIO NO SE FORMA BIEN EL XML

Posted: Sat Jan 02, 2010 04:44 PM

Vladimir, consulta: ¿Para qué estás utilizando XML si se puede saber?

Saludos y feliz 2010

David Lagos S.
Coquimbo-Chile
www.wificafe.cl
webmaster@wificafe.cl

Continue the discussion