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.
[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')]
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft