Sign in Join
FPDoc Onlineexperiment

Laz2_XMLUtils unit

XML utility routines with support for UTF-8 encoding.

laz2_xmlutils.pas contains XML utility routines with support for the UTF-8 encoding. It is copied from code in the FreePascal Free Component Library (FCL) and modified to provide UTF-8 support.

laz2_xmlutils.pas is part of LazUtils package.

Classes and records

TBindingclass
TDblHashArrayclass
TExpHashEntryrecordAnother hash table used to detect duplicate namespaced attributes without memory allocations.
THashItemrecord
THashTableclassA simple hash table with TXMLUtilString keys.
TNSSupportclass

Procedures and functions

Hashfunction
IsValidXmlEncodingfunctionDetermines if the specified value is a valid XML encoding name.
IsXmlNamefunctionDetermines if the specified value contains a valid XML element name.
IsXmlNamesfunction
IsXmlNmTokenfunction
IsXmlNmTokensfunction
IsXmlWhiteSpacefunctionDetermines if the specified value is an XML Whitespace character.
NormalizeSpacesprocedureRemoves duplicate spaces in the specified value.
TranslateUTF8Charsprocedure
Xml11NamePagesfunction
XUStrLICompfunction

Types

PExpHashEntryArraytype
PHashItemtype
PHashItemArraytype
PPHashItemtype
PXMLUtilChartype
PXMLUtilStringtype
TAttributeActionenumeration
TExpHashEntryArraytype
THashForEachprocedure type
THashItemArraytype
TSetOfByteset
TXMLUtilChartype
TXMLUtilStringtype

Constants

NamePagesconstant
namingBitmapconstant
ns_0200constant
ns_0300constant
ns_0400constant
ns_0500constant
ns_0600constant
ns_0900constant
ns_0A00constant
ns_0B00constant
ns_0C00constant
ns_0D00constant
ns_0E00constant
ns_0F00constant
ns_3000constant
ns_ASCIIconstant
Xml11HighPagesconstant

Uses

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