Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

XmlFileGenerator Function


The XmlFileGenerator inherits from the XmlGenerator but instead of sending output to the browser the output is saved to a file.

Implementation instructions follows the XmlGenerator, except that you need to inherit from XmlFileGenerator instead of XmlGenerator.

If using XmlFileGenerator with the Parent and Child PageGenerator patterns it is necessary to transfer the WriteHandle field from parent to child. Please apply the following steps:

  1. Insert the WriteHandle field in the InputForChild variable in each ParentPageGenerator function.
  2. Add the WriteHandle field to the Input variable in each ChildPageGenerator function
  3. Insert the following statement in each ChildPageGenerator function in the pre point Start initialize:

    Set Document<WriteHandle> = Input<WriteHandle>"

Make sure to replace the ErrorPage function of the XmlFileGenerator with a function which outputs any errors to the destination of the developers choice.