Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ParadoxFile to XML

 
   Database Help (Home) -> Paradox RSS
Next:  Reading a paradox file  
Author Message
Michael.Ruehling

External


Since: Jun 30, 2008
Posts: 4



(Msg. 1) Posted: Mon Jun 30, 2008 9:37 pm
Post subject: ParadoxFile to XML
Archived from groups: comp>databases>paradox (more info?)

Hi,
I am using Paradox 9. Thesedays I am trying to convert all of my
Lists into XML-Files to display them via XSL.
Has anybody tried to write an XML-Export-Filter -Function or
something like that in ObjectPal?
Anything is helpful.


M.

 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
Jim Hargan

External


Since: Jun 07, 2008
Posts: 15



(Msg. 2) Posted: Mon Jun 30, 2008 9:37 pm
Post subject: Re: ParadoxFile to XML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 30 Jun 2008 21:37:23 +0200, Michael.Ruehling DeleteThis @t-online.de wrote:

> Hi,
> I am using Paradox 9. Thesedays I am trying to convert all of my
> Lists into XML-Files to display them via XSL.
> Has anybody tried to write an XML-Export-Filter -Function or
> something like that in ObjectPal?
> Anything is helpful.

I wrote an OPAL system that creates valid XHTML web pages from text content
stored in Pdox tables. This is XML, but probably not what you are looking
for. However the principle is simple:
- use tCursors to find the datum you want to write;
- store it in a string variable (all XML data are strings);
- add the XML tags to the start and end of the variable; and
- textStream it into the XML document.

I've been using it successfully for five years or so. I created my web site
with it, and I create lightboxes for clients with it several times a week.

HTH,

Jim Hargan
www.harganonline.com

 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
Michael.Ruehling

External


Since: Jun 30, 2008
Posts: 4



(Msg. 3) Posted: Tue Jul 01, 2008 7:11 pm
Post subject: Re: ParadoxFile to XML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 30 Jun 2008 18:10:33 -0400, Jim Hargan
wrote:

>On Mon, 30 Jun 2008 21:37:23 +0200, Michael.Ruehling.TakeThisOut@t-online.de wrote:
>
>> Hi,
>> I am using Paradox 9. Thesedays I am trying to convert all of my
>> Lists into XML-Files to display them via XSL.
>> Has anybody tried to write an XML-Export-Filter -Function or
>> something like that in ObjectPal?
>> Anything is helpful.
>
>I wrote an OPAL system that creates valid XHTML web pages from text content
>stored in Pdox tables. This is XML, but probably not what you are looking
>for. However the principle is simple:
> - use tCursors to find the datum you want to write;
> - store it in a string variable (all XML data are strings);
> - add the XML tags to the start and end of the variable; and
> - textStream it into the XML document.
>
>I've been using it successfully for five years or so. I created my web site
>with it, and I create lightboxes for clients with it several times a week.
>
>HTH,
>
>Jim Hargan
>www.harganonline.com

Hi,
this is what I want. But I want to do it automaticly (?) for all of
my tables without manual interference.
e.g.:

[PSEUDOCODE]:

openTable(char Name);
while (!EOF)
{
STRING Var = add(XML_VARIABLE_START, datum, XML_ELEMENT_END);
writeFile(openTextFile, Var);
}
closeTable();

So far it complies with your Thought, except for the tCursor to find
the data.

By the way: Is there any good book/resource for OPAL?

Thanx
M.
 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
Jim Hargan

External


Since: Jun 07, 2008
Posts: 15



(Msg. 4) Posted: Tue Jul 01, 2008 7:11 pm
Post subject: Re: ParadoxFile to XML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A tCursor is simply a pointer to a specific record of a specific table, and
lets you access everything about the record. You open it on the table and
then move it to the record using locate() or qlocate() (the latter uses an
index for extra speed); from there you can use the tCursor to read any
field. The scan/endscan loop moves it through the entire table top to
bottom, and can take a selection criterion as well.

For a flat file, just point a tCursor at it and scan through it. For a
relational database, point one tCursor at the parent, and a second one at
the child. Scan the parent table with its tCursor. For each record you hit,
read the child table's local key into a variable, and then tell the child
table's tCursor to qLocate it. Now you have everything you need to
textStream the data to a file.

A form based approach is possible, but would be much slower to execute (by
at least one order of magnitude, and probably two), and would be tricker to
write (because you'd have to deal with the form's object hierarchy).

As for OPAL resources:

1. The online help is the best place to start: Help/ObjectPal Reference,
and Help/Objectpal Tutorial. The reference starts with a complete
explanation of the language. Start there, then look up "tCursor Type" and
"textStream Type" in the index.

2. When you use the embedded OPAL editor, you can put your cursor on any
command, hit <F1>, and get the help page for that command. These pages are
pretty good, with helpful examples and links to similar commands.

3. Your best resource is the community of enthusiasts and developers who
runs this and other Paradox news groups. Their web page is
http://www.thedbcommunity.com/
and it contains many articles and archived news groups.

4. AFAIK, there are no third party manuals currently in print. The easiest
to find is Mike Prestwood's Paradox 9 Programming, which despite its age is
almost completely current. You can read chapters from it on Mike's site,
http://www.prestwood.com/ASPSuite/kb/browse.asp?tid=103

HTH,

Jim Hargan

On Tue, 01 Jul 2008 19:11:06 +0200, Michael.Ruehling.TakeThisOut@t-online.de wrote:

> On Mon, 30 Jun 2008 18:10:33 -0400, Jim Hargan
> wrote:
>
>>On Mon, 30 Jun 2008 21:37:23 +0200, Michael.Ruehling.TakeThisOut@t-online.de wrote:
>>
>>> Hi,
>>> I am using Paradox 9. Thesedays I am trying to convert all of my
>>> Lists into XML-Files to display them via XSL.
>>> Has anybody tried to write an XML-Export-Filter -Function or
>>> something like that in ObjectPal?
>>> Anything is helpful.
>>
>>I wrote an OPAL system that creates valid XHTML web pages from text content
>>stored in Pdox tables. This is XML, but probably not what you are looking
>>for. However the principle is simple:
>> - use tCursors to find the datum you want to write;
>> - store it in a string variable (all XML data are strings);
>> - add the XML tags to the start and end of the variable; and
>> - textStream it into the XML document.
>>
>>I've been using it successfully for five years or so. I created my web site
>>with it, and I create lightboxes for clients with it several times a week.
>>
>>HTH,
>>
>>Jim Hargan
>>www.harganonline.com
>
> Hi,
> this is what I want. But I want to do it automaticly (?) for all of
> my tables without manual interference.
> e.g.:
>
> [PSEUDOCODE]:
>
> openTable(char Name);
> while (!EOF)
> {
> STRING Var = add(XML_VARIABLE_START, datum, XML_ELEMENT_END);
> writeFile(openTextFile, Var);
> }
> closeTable();
>
> So far it complies with your Thought, except for the tCursor to find
> the data.
>
> By the way: Is there any good book/resource for OPAL?
>
> Thanx
> M.
 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
user

External


Since: Apr 30, 2008
Posts: 5



(Msg. 5) Posted: Thu Jul 03, 2008 10:00 pm
Post subject: Re: ParadoxFile to XML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

See : http://paradox.riff.org/
(since Paradox Convention 2003 - Paris)

@-salutations

Michel Claveau
 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
modri dirkac

External


Since: Feb 19, 2008
Posts: 13



(Msg. 6) Posted: Wed Jul 09, 2008 3:09 pm
Post subject: Re: ParadoxFile to XML [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I created my method for XML files.
It requires DB table and a file with fields and XML tags to be joined with
DB.
This file with instructions how to join DB and tags to XML look like this:

##table mt MasterTable##
##table pt :FKWDB:fkwpt##
##table cust :STRDB:CUST##
##format Date DO(%Y-%M-%D)##
##format Number W.2##
<DATA>
<HEADER>
##mt."Customer ID"##
##cust.qlocate(mt."Customer ID")##
##cust."Name1"## ##cust."Name2"##
</HEADER>
<ITEMS>
##pt.SetRange(mt."Invoice ID")##
##scan pt##
<ITEM>
##pt."Qty"##
##pt."Price"##
</ITEM>
##endscan##
</ITEMS>
</DATA>


In this example in Master table I have one invoice
Pt table is detail table for invoice
cust table is customer table.

Method then opens TCursors on this tables (first 3 lines)
The I set formatting for different data types
Everything between ## ## is a command to interpreter or refference to field
in table.
Everything else is directly written to final XML file.

Jure

je napisal v sporocilo
...
> Hi,
> I am using Paradox 9. Thesedays I am trying to convert all of my
> Lists into XML-Files to display them via XSL.
> Has anybody tried to write an XML-Export-Filter -Function or
> something like that in ObjectPal?
> Anything is helpful.
>
>
> M.
 >> Stay informed about: ParadoxFile to XML 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
write to paradox via web - I have a client that uses software developed in delphi. It uses paradox database files. Can these be written to from the web? I am familiar with php/mysql...is there a similar capability with delphi/paradox?

which program? - Hi to all, I'm sorry 'cause I'm not sure this is the correct ng...so my apologies in advance if I'm in the wrong place. My customer show me a floppy disk with old files (about 1998-1999) and told me that there are her accounting data to back life. With...

forcing lck files location - Is there method to force lck files location. I create query on fly with Delphi but there is a problem with lock files. It tries to create it to system32 folder but because user does not have rights to that folder , creating query fails. So, how can I..

Network performance and hardware issues - Hi! Our clients have run our Paradox based apps in small network configurations with only about 10-15 runtime clients at max. Recently we have had inquiries from a bigger company that wants to run our app in an network of over 100 clients, is this..

I can't to open table(s) on InterBase's server - I have a computer with OS WindowsXP Professional version 2002 with SP2 and I have next problem with Paradox 10 v.11.0.0.302. I can't to open a table(s) on InterBase's server, but I can to open a local table(s). Dialog window of Database Login for..
   Database Help (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]