swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

xml.writer

 
 

Library: XML serializer (OMXMLWRITE)
Import: omxmlwrite.xmd
Return type: markup sink

Returns:


Declaration

export markup sink function
   writer into value string sink destination
      

Argument definitions

destination
the string sink where the XML representation of the input markup is written


Purpose

The markup sink function xml.writer converts its input markup stream into well-formed XML, and writes that XML into its destination argument. The following example demontrates how the function can be used to write an XML file.

  import "omxmlwrite.xmd" prefixed by xml.
  
  process
     do xml-parse scan #main-input
        using output as xml.writer into file "output.xml"
           output #content
     done

      Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.