To create a XML file

To create a XML file

Postby Armando » Thu Feb 12, 2015 12:34 am

Friends:

Where I can find information (Doc/Sintaxis) on creating an XML file from a TXT file?

specifically how create the next line:

<xs:schema xmlns:BCE="www.sat.gob.mx/esquemas/ContabilidadE/1_1/BalanzaComprobacion"' +;
' xmlns:xs="http://www.w3.org/2001/XMLSchema" targetnamespace="www.sat.gob.mx/esquemas/contabilidadE/1_1/BalanzaComprobacion"' +;
' elementFormDefault="qualified" attributeFormDefault="unqualified">

I found the next topic but it's not enough to me

viewtopic.php?f=6&t=4144&p=18279&hilit=txmldocument#p18279

Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3084
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: To create a XML file

Postby Marco Augusto » Thu Feb 12, 2015 2:12 am

Un archivo xml es un archivo ascii

yo lo estoy haciendo de la siguiente manera usando TDOSPRN

AR="cuentas.XML'
oPrn := TDosPrn():New(AR)
XINI1=[<?xml version="1.0" encoding="UTF-8"?>]
XINI2=[<catalogocuentas:Catalogo xsi:schemaLocation="http://www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas/CatalogoCuentas_1_1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:catalogocuentas="http://www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas" Version="1.1" RFC="XAXX010101000" Mes="01" Anio="2015">]
XFIN =[</catalogocuentas:Catalogo>]
oPRN:SAY( REN,0,XINI1)
REN=REN+1
oPRN:SAY( REN,0,XINI2)
REN=REN+2
oPRN:SAY( REN,0,XFIN)
oPRN:END()
Marco Augusto Rodriguez Manzo
FWH January 2020 Xharbour 1.2.3
MySQL 5.0.19 Fastreport

PERZO SOFT
Sistemas Personalizados
User avatar
Marco Augusto
 
Posts: 141
Joined: Wed Oct 12, 2005 1:03 pm
Location: Cuernacava, Morelos Mexico

Re: To create a XML file

Postby Armando » Thu Feb 12, 2015 2:51 am

Marco Augusto:

Me alegra saber de ti :D , Gracias por el consejo.

Estoy usando la lib hbXml, pero ya me atoré :oops:

Podríamos ponernos en contacto por Skype ?
soidito@hotmail.com

Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3084
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 49 guests