xml.writer

function

Library: XML serializer (OMXMLWRITE)
Import : omxmlwrite.xmd

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