|
XML Documentation |
Top Previous Next |
|
The XML Documentation feature allows you to generate a file with documentation of your source code in XML format. The XML file includes elements such as References, Projects, Files, Procedures, Parameters, Controls, etc. Each element such as Reference, Procedure, Parameter, etc. includes subelements with relevant properties. For example, the Parameter element has the Type, Optional, Default Value, etc. MZ-Tools offers the following ways to generate XML documentation:
The XML file also includes comment line elements for module and procedure elements whose content is extracted from the source code (provided you have entered them). Comments are extracted line by line as literals, so you can use any format for them, that is, they do not need to be XML compliant. Although not required, MZ-Tools allows you to include a reference to an XSLT template in the XML file when it is generated (Options window, General tab). This XSLT template allows you to format the XML file for viewing it with Microsoft Internet Explorer 5.0 or higher. There are a lot of uses for the XML file. As example, an XSLT template is provided that you can customize which uses also CSS, JavaScript and DHTML to expose the XML documentation as a HTML report for documentation purposes. Remarks:
Public Property Get Property1() As Integer
If Ambient.UserMode = True Then ' Do not execute at design-time MsgBox "Test" ... End If
End Property Otherwise, the MsgBox statement would be executed when generating the XML documentation. See Also: |