xmlwrite

From Lazarus wiki
Revision as of 16:15, 28 March 2009 by Marcov (talk | contribs) (New page: Writes a DOM structure as XML data into a file or stream. It can deal both with XML files and XML fragments. At the moment it supports only the UTF-8 output encoding. Please note that the ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Writes a DOM structure as XML data into a file or stream. It can deal both with XML files and XML fragments. At the moment it supports only the UTF-8 output encoding. Please note that the writer replaces some characters by entity references automatically:

  • for normal text nodes, the following replacements will be done:
    • '<' => '<'
    • '>' => '>'
    • '&' => '&'
  • For attribute values, additionally '"' gets replaced by '"', and characters #9, #10 and #13 are escaped using numerical references.
  • Single apostrophes (')don't need to get converted, as values are already written using "" quotes.

The XML reader (in xmlread.pp) will convert these entity references back to their original characters.

Back to fcl-xml overview.