XML in HGM.3.0.35 o HMG4

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

XML in HGM.3.0.35 o HMG4

Post by danielmaximiliano »

Hola a Todos:
alguien implemento XLM en su desarrollo y experimento sobre el mismo?
en C:\MiniGUI\SAMPLES\Advanced\XMLDEMO hay un ejemplo pero no se como portarlo a HMG3.x

Google Translate

Hi Everyone:
XLM someone implement its development and experiment on it?
C: \ MiniGUI \ Samples \ Advanced \ XMLDEMO is an example but not as a port to HMG3.x

Saludos/Regards
DaNiElMaXiMiLiAnO
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: XML in HGM.3.0.35 o HMG4

Post by danielmaximiliano »

Hola a Todos :
Encontre esto para trabajar XML, pero no se como implementar clases en Harbour/HMG necesito leer archivos XML dentro de mi aplicacion para actualizar datos que provienen de un proveedor.

Hi Everyone:
XML I found this to work, but not how to implement classes in Harbour / HMG need to read XML files in my application to update data from a supplier.

Code: Select all

  <?xml version="1.0" encoding="windows-1252" standalone="yes" ?> 
- <DATAPACKET Version="2.0">
- <METADATA>
- <FIELDS>
  <FIELD attrname="A" fieldtype="r8" desc="Sección" default="4" /> 
  <FIELD attrname="B" fieldtype="r8" desc="Poliza" /> 
  <FIELD attrname="C" fieldtype="r8" desc="Certificado" default="0" /> 
  <FIELD attrname="D" fieldtype="r8" desc="Endoso" default="0" /> 
  <FIELD attrname="E" fieldtype="datetime" desc="Vencimiento" /> 
  <FIELD attrname="F" fieldtype="string" WIDTH="1" desc="Estado" default="1" /> 
  <FIELD attrname="G" fieldtype="r8" desc="Cuota" /> 
  <FIELD attrname="H" fieldtype="string" WIDTH="8" desc="Anticipo" /> 
  <FIELD attrname="I" fieldtype="r8" desc="Prima" /> 
  <FIELD attrname="J" fieldtype="r8" desc="Premio" /> 
  </FIELDS>
  <PARAMS LCID="1034" /> 
  </METADATA>
- <ROWDATA>
  <ROW B="7602366" E="20071119" F="4" G="11" I="191.5" J="319" /> 
  .....
   ....More Data ....
  ......
 </ROWDATA>
  </DATAPACKET>
intento compilar dicho ejemplo pero tengo muchos errores y no puedo subsanarlos.
alguna ayuda?

I try to compile that example but I have many errors and I can not address them.
any help?

Saludos / Regards
DaNiElMaXiMiLiAnO
Attachments
ParserXML.rar
(21.66 KiB) Downloaded 474 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: XML in HGM.3.0.35 o HMG4

Post by Carlos Britos »

danielmaximiliano wrote:intento compilar dicho ejemplo pero tengo muchos errores y no puedo subsanarlos.
alguna ayuda?

I try to compile that example but I have many errors and I can not address them.
any help?
Try with harbour libs directly.
Regards/Saludos, Carlos (bcd12a)
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: XML in HGM.3.0.35 o HMG4

Post by danielmaximiliano »

Hola a Todos:
modificando el archivo fuente logre resolver algunos errores que tenia. ahora
me surge otro. no puedo incluir error.ch a pesar que esta en la carpeta origen de la aplicacion; tambien en c:\hmg\include
alguna idea ?

Translate Google
Hi Everyone:
modifying the source file can resolve some errors I had. now
me another opens. I can not include error.ch although it is in the folder of the application, also in c: \ hmg \ include
any ideas?
[img]error.ch.jpg[/img]

is also included in the Project Browser / includes

DaNiElMaXiMiLiAnO
Attachments
error.ch.jpg
error.ch.jpg (258.84 KiB) Viewed 4668 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply