XML and CSV Import and Save
\The Sandbox \PB History & Future \New In PB 9 \XML and CSV Import & Save
DW XML
Support
PB DOM
PBNI
JSP Targets
Web Services 
for JSPs
Web Services
Win Clients
EJB Clients for
App Servers
XML and CSV
Import & Save
Saving as 
PDF & XSL-FO
OrcaScript
PB Runtime
Packager
PB Resource
Monitor
Source Control
Enhancements
DW
Enhancements
PowerScript
Enhancements
Debugger
Enhancements
DB Connectivity
Enhancements
Miscellaneous
Enhancements
New In
PB 9.0.1
New In
PB 9.0.2
New In
PB 9.0.3

Description

The ImportFile, ImportString, and ImportClipboard methods for DataWindows and Graph objects support XML and CSV as import formats, and the SaveAs methods support XML. You can also import and save using these formats in the DataWindow and Database painters.

Usage

The import methods have an optional first parameter that enables you to specify the type of data to be imported. For ImportFile, the valid types are Text!, CSV!, XML!, DBase2!, and DBase3!. If you specify this parameter, you do not need to include the extension in the import file name:

    gr_1.ImportFile( XML!, "c:\data\customers")

If you do not specify this parameter, the extensions .TXT, .CSV, .XML, and .DBF are recognized. For ImportString and ImportClipboard, the valid datatypes are Text!, CSV!, and XML!.

You can create XML templates to control the import and export of most DataWindow objects. You cannot use templates with Graph objects or DataWindow objects that use the Graph, OLE, or Composite presentation styles.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com