Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Pervasive.SQL > Generating XML output in a specific format

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-08, 16:45
sadimalik sadimalik is offline
Registered User
 
Join Date: Jan 2008
Posts: 12
Generating XML output in a specific format

I am a new pervasive user and wanted to get a solution to my problem.

I want to query data in pervasive database and then generate an XML file output in a specific format. Is there a command line utility in Pervasive database that allows me to write PL/SQL script to do that and allow me to run the script nightly.

Is there any other scripting language used ? What is the command line utility ?

What are other alternatives available to accomplish this ?

Thanks for your help.

Regards
Reply With Quote
  #2 (permalink)  
Old 01-03-08, 16:50
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
PSQL doesn't have any function or tool to export a dataset to XML.
You can either write your own tool to read the data and write it in XML or use a tool like the Pervasive Integration tools.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 01-03-08, 17:27
sadimalik sadimalik is offline
Registered User
 
Join Date: Jan 2008
Posts: 12
Thanks Mirtheil for your quick response.

Is there a way to write a query in Pervasive version 9 and out put in a flat file ? If yes how is it done ?

Can we also format or manipulate query to add tags in the ouput flat file.

Thanks
Reply With Quote
  #4 (permalink)  
Old 01-03-08, 18:02
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 813
Yes and no. PSQL v9.5 has an Export Wizard but it only exports to a SDF (Comma Separated) file or an "Unformatted" file.

There isn't a tool included with PSQL that will do what you want. You'll need to build, have built, or buy a third party tool.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On