XMLGen.property (obsolete)
Description
Settings that specify how XML is generated, whether client-side,
postback, or callback paging is used, the physical path to which XML is
published, and the URL referenced by the JavaScript that transforms the
XML to XHTML.
Obsolete property
XMLGen.property is obsolete and should not be used, because the
Web DataWindow technology is obsolete.
The Web Generation tab and JavaScript Generation tab are
preserved for the backward compatibility only.
Applies to
DataWindow objects
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.DataWindow.XMLGen.property |
Describe and Modify argument:
|
1 |
"DataWindow.XMLGen.property { = value }" |
|
Parameter |
Description |
|---|---|
|
property |
One of the following:
|
|
value |
(exp) Inline — A boolean that specifies whether true false — (default) The XML is published to a (exp) PublishPath — A string (exp) ResourceBase |
Usage
Inline
The XML published on the Internet in your XML Web DataWindow could
contain sensitive data, and this data might be exposed to Internet users
when published to a separate document. For increased security, if the
Inline property to set to true, the XML is generated “inline” to the
XSLT transformation script in the page that renders the control. If only
authenticated users have access to this script, the security of the XML
is ensured. Setting this property should have no adverse side effects on
the caching efficiency of the control.
PublishPath and
ResourceBase
The PublishPath folder must correspond to the URL specified in the
ResourceBase property. At runtime, after PowerBuilder generates XML
content to the PublishPath folder, client-side JavaScript in a generated
page downloads it using a reference to the ResourceBase property. The
JavaScript transforms the XML content to XHTML using the generated XSLT
style sheet.
In the painter
On the Web Generation tab in the Properties view for the
DataWindow object, select XML from the Format to Configure list and
select the options you require.
Examples
These statements set the XMLGen.ResourceBase and
XMLGen.PublishPath properties:
|
1 2 3 4 5 6 7 8 |
dw1.Object.DataWindow.XMLGen.ResourceBase= & 'http://www.myserver.com/xmlsource' dw1.Object.DataWindow.XMLGen.PublishPath= & 'C:workoutputfilesxmlsource' dw1.Modify("DataWindow.XMLGen.PublishPath= 'C:InetpubwwwrootMyWebAppgeneratedfiles'") dw1.Modify("DataWindow.XMLGen.ResourceBase= '/MyWebApp/generatedfiles'") |
This statement sets the XMLGen.Inline property so that XML is
generated inline:
|
1 |
dw1.Modify("DataWindow.XMLGen.Inline='1'") |