9.4 library(c14n2): C14n2 canonical XML documents
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog SGML/XML parser
        • Writing markup
          • library(c14n2): C14n2 canonical XML documents
            • xml_write_canonical/3
Availability::- use_module(library(c14n2)).(can be autoloaded)
Source[det]xml_write_canonical(+Stream, +DOM, +Options)
Write an XML DOM using the canonical conventions as defined by C14n2. Namespace declarations in the canonical document depend on the original namespace declarations. For this reason the input document must be parsed (see load_structure/3) using the dialect xmlns and the option keep_prefix(true).