Viewing the XML in an application with DXL utilities

About this task

In addition to including XML in an Domino® Designer application, you can view all of the design elements represented in XML using Domino® XML (DXL). You can either view the XML in Designer, or you can export the XML to a text file, where you can view it or edit it using your favorite editor.

For detailed information about DXL, refer to the Programming Guide.

Accessing design elements in XML provides you with the means of accessing the data in your application and comparing it to or integrating it with other data sources that support XML. The DXL utilities can be a very flexible alternative to generating reports on application elements using the Design Synopsis. You can examine the DXL for a collection of elements, or you can transform it using an XSL file to apply styles and formats that make your data more meaningful to you.

In order to transform DXL, you must construct an XSL file which processes the tags that make up a design element. For example, the sample XSL file "Report--AllLSinForm.xsl" selects certain parts of the DXL document and ignores others. The selected pieces (all relating to LotusScript®) are reformatted to make the output more readable.

To view the XML for a design element

About this task

Procedure

  1. Select one or more design element in the design pane.
  2. Choose Tools - DXL Utilities - Viewer.

    Designer displays the XML for the design elements in the Notes® client.

To export the XML for one or more design elements to a text file

Procedure

  1. Select one or more design elements in the design pane.
  2. Choose Tools - DXL Utilities - Exporter.
  3. Enter a file name and path for the XML file and click Save.

Results

You can open the file in your favorite text editor and view or edit the XML source.

To transform the XML for one or more design elements using an XSL

Procedure

  1. Select one or more design element sin the design pane.
  2. Choose Tools - DXL Utilities - Transformer.
  3. Select the name of an XSL file to use for transforming the XML.

    Designer ships with some sample XSL files that you can select or you can browse the file system to select another XSL file.

  4. Choose a type of output. Either select screen for a screen display, or specify an output file name.