WriteXML procedure
Writes a DOM Node to a file, text file, or stream.
Declaration
procedure WriteXML(Element: TDOMNode; const AFileName: string)
; overloadDescription
WriteXML is an overloaded procedure used to write a DOM Node to a
file, text file, or stream. WriteXML calls one of the overloaded WriteXMLFile
routines for a specific destination.
Element is a TDOMNode parameter that represents the DOM Document Node with the XML content written in the method. WriteXML ensures that Element is cast to a TXMLDocument type when calling the WriteXMLFile routine.
AFileName indicates the file name on the local file system where the XML content is stored. AFileName can contain UTF-8 encoded values, and must represent a valid file name. If the file in AFileName already exists, an exception will be raised.
Flags contains values from the TXMLWriterFlag enumeration. Use Flags to
enable XML writing options in the routine. The default value for the argument
is an empty set ([]), and indicates that no options are enabled in the
routine. Please note that use of TXMLWriterFlag options like
xwfAllowNullCharsInAttributeValue and xwfSpecialCharsInAttributeValue can
result in an XML document that cannot be handled by a validating XML
processor. The ReadXMLFile routine in LazUtils will accept and
handle the values.
This description is the one of Laz2_XMLWrite.WriteXML.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
