Importing XML

You can import the content of an XML document into a DataWindow or DataStore using similar techniques used for importing other structured data formats such as comma- or tab-delimited (the {*} represents optional parameters omitted for brevity):

  • Using the ImportFile() method:

    dw_1.ImportFile( XML!, "c:\foo\bar.xml" {*} )
    
  • Using the ImportString() method:

    dw_1.ImportString( XML!, ls_xml {*} )
    
  • Using the ImportClipboard() method:

    ls_xml = dw_1.ImportClipboard()
    

New DataWindow properties are used to fine-tune the populating of a DataWindow from an XML source. These properties can be set at both runtime and design time. The following is a list of those properties and their descriptions:

  • Import.XML.UseTemplate is used to specify a named ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.