Lasso Soft Inc. > Home

[XML_Serve]

The [XML_Serve] tag serves an XML file which is stored in a variable in place of the current Lasso format file. The name of the XML file can be specified and, in supported browsers, the XML file will be displayed using a collapsible outline display.

None of the contents of the current format file will be served. [XML_Serve] completely rewrites the HTTP headers and contents of the served response. [XML_Serve] also performs an [Abort] so no tags after [XML_Serve] will be executed.

The first parameter to the tag should be a variable which contains the XML data to be served. An optional -File parameter allows the name of the XML file to be specified. An optional -Type parameter allows the MIME type of the served file (default 'text/xml') to be overridden.

  • Syntax
  • Parameters
[XML_Serve: 'XML Data']

[XML_Serve: 'XML Data', -File='Example.XML']

[Variable: 'myXML' = (XML: ...)]
...
[XML_Serve: $myXML]

[XML_Serve: (File_Read: 'Example.XML'), -File='Example.XML']

[XML_Serve: (Field: 'XMLData')]
Required Parameters
'File Data' The first parameter to the tag should be the XML data that will be served.
Optional Parameters
-File The -File parameter specifies the name of the XML data. In supported browsers the XML data will be saved using this file name.
-Type The -Type parameter specifies the MIME type for the served XML data. Defaults to text/xml.
Examples

See the XML chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the XML examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide. This tag is documented on page 513.

Tag Link [XML_Serve] Category XML
Type Process Data Source Any
Support Preferred Version 6.0
Output Type None Security None
Implementation LDML Sets Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft