Websydian v6.1 online documentationOnline documentation - Websydian v6.1

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 post point Start write document:

    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.