Read and Write XML

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Tomas Svizensky

Read and Write XML

Post by Tomas Svizensky » 25 Jul 2006, 09:33

 Posted by:  Tomá¹ Sví¾enský 

Hi all

Please, help me for read and write XML file at CTD 1.1

Thanx

Best Regards
Tomas Svizensky

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Read and Write XML

Post by Jeff Luther » 25 Jul 2006, 23:32

 Posted by:  Jeff Luther 

I have demos to do just that on my gupta page, Tomas. There is
a v1.5 version there that should be fairly close to what you
want. If you cannot read in the text files, use a text editor to
change this:
.head 1 - Outline Version - 4.0.27

at the top of the file to 4.0.26 and see if they will read in.

Best Regards,
Jeff Luther/PC Design
info: www.pulpcards.com/gupta/

Tomas Svizensky

Re: Read and Write XML

Post by Tomas Svizensky » 26 Jul 2006, 11:07

 Posted by:  Tomás Svízenský 

Thank you, Jeff.

This sample is only for GENERATE....Write.
Have you sample for READING from XML to DB ?

Best Regards
Tomas Svizensky

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Read and Write XML

Post by Jeff Luther » 26 Jul 2006, 17:16

 Posted by:  Jeff Luther 

"Have you sample for READING from XML" - no, but with the code I
provided (so you have 1 example of what the XML format is) and using
TD's SalFile and SalStr functions you should be able to write an XML
parser ok.

The XML my sample writes contains the DB schema info: table owner, table
name and table column in the XML section "")
+ the row(s) of table data in the XML section "".

(My generator writes one XML format, though I tried to match the XML
output format generated by the the XML functions in the then new TD v4.0
sample application, XMLADO.app, which saves its output to AJO.xml.)

Try to write something yourself, and if you have a problem, let us
see your test code and describe the problem you have and most likely
we can help you here in the NG.

- Jeff

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests