Writes a XML term to a text stream.
write_xml/1 writes the XML term XmlTerm to the current output stream. write_xml/2 writes the XML term XmlTerm to the text stream Stream. For a description of a XML term see read_term/2/3.
Stream text output stream XmlTerm term representing an XML term
write_xml(document(
[xml([version = '1.0'])],
element(n1, [a1 = 'x', a2 = 'y'], [
element(n2, [], [chardata('hello')]),
element(n3, [a3 = 'z'], [])]),
[])).
These predicates are not part of the ISO-Prolog Standard.
| scroll to top |
|