Sign in Join
FPDoc Onlineexperiment

Laz2_XMLRead unit

Provides routines used to read XML content from a file, text file, or stream.

laz2_xmlread.pas provides routines used to read XML content from a file, text file, or stream. It is copied from the FCL unit xmlread.pp (SVN revision 15251), and adapted to use UTF-8 instead of widestrings by Mattias Gaertner.

Copyright (c) 1999-2000 by Sebastian Guenther, sg@freepascal.org
Modified in 2006 by Sergei Gorelkin, sergei_gorelkin@mail.ru
Converted to use UTF-8 instead of widestrings by Mattias Gaertner.

laz2_xmlread.pas is part of the lazutils package.

Classes and records

EXMLReadErrorclassException raised when reading XML content.
TDecoderrecordDecoder used to convert encoded values in XML content.
TDOMParseOptionsclassRepresents option settings for the TDOMParser class.
TDOMParserclassImplements a parser used to de-serialize XML content into DOM Nodes.
TXMLInputSourceclassRepresents the input source for XML content.

Procedures and functions

ReadDTDFileprocedureReads and stores a DTD file into the specified XML document.
ReadXMLFileprocedureReads the content of an XML file into the specified XML document.
ReadXMLFragmentprocedureReads an XML fragment into the specified DOM Node.
RegisterDecoderprocedureRegisters the procedure used to decode values in a specific encoding.

Types

TErrorSeverityenumerationRepresents error severity codes for XML read operations.
TGetDecoderProcprocedure typeFunction type used to get a decoder routine for the specified target encoding.
TXMLContextActionenumerationValues that control how XML content is stored in a DOM sub-tree.
TXMLErrorEventprocedure typeEvent type signalled when an error occurs while processing XML content.
TXMLReaderFlagenumerationRepresents options enabled when reading XML content.
TXMLReaderFlagssetSet type used to store options enabled when reading XML content.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.