| Did you know ... | Search Documentation: | 
| Writing documents | 
The library library(sgml_write) provides the inverse of 
the parser, converting the parser's output back into a file. This 
process is fairly simple for XML, but due to the power of the SGML DTD 
it is much harder to achieve a reasonable generic result for SGML.
These predicates can write the output in two encoding schemas depending on the encoding of the Stream. In UTF-8 mode, all characters are encoded using UTF-8 sequences. In ISO Latin-1 mode, characters outside the ISO Latin-1 range are represented using a named character entity if provided by the DTD or a numeric character entity.
false, the XML header is suppressed. 
Useful for embedding in other XML streams.false, 
no layout characters are added. As this mode does not need to analyse 
the document it is faster and guarantees correct output when read back. 
Unfortunately the output is hardly human readable and causes problems 
with many editors.header 
and
ident is added to use xml_write/3 
to generate XML that is embedded in a larger XML document.<foo/> (default,
net(true)) or <foo></foo> (net(false)). 
For SGML, this applies to empty elements, so you get <foo> 
(if foo is declared to be EMPTY in the DTD),
<foo></foo> (default, net(false)) 
or
<foo// (net(true)). In SGML code, short 
character content not containing / can be 
emitted as <b>xxx</b> (default, net(false) 
or <b/xxx/ (net(true))DOCTYPE header and the content of the 
document as represented by Term to Stream. The Options 
are described with xml_write/3.