Sign in Join
FPDoc Onlineexperiment

IsValidXmlEncoding function

In unit Laz2_XMLUtils

Determines if the specified value is a valid XML encoding name.

Declaration

pascal
function IsValidXmlEncoding(const Value: TXMLUtilString): Boolean

Arguments

Value

Value examined for a valid encoding identifier.

Function result

True the value satisfied the Name production in the XML specification.

Description

IsValidXmlEncoding is a Boolean function used to determine if the value specified in Value is a valid XML encoding name. The encoding name is used in the XML declaration for a document. For instance:

<?xml encoding='UTF-8'?>

or:

<?xml encoding='EUC-JP'?>

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