Skip to content

EF.XML

Support for XML format.

Routines

pascal
function XMLEscape(const AString: string): string;

Escapes control characters in the XML string.

pascal
function ClearXMLHeader(var AText: string): Boolean;

Clear the XMLHeader from an XML string. Returns true if the header was found and cleared

pascal
function XMLHeaderPos(const AText: string): Integer;

Returns the position of the XMLHeader if found

pascal
function ClearDOCTYPE(var Text: string): boolean;

Clear the DOCTYPE node from an XML string. Returns true if the DOCTYPE node was found and cleared

pascal
function ClearXmlNameSpaces(var Text: string): boolean;

Removes every default namespace declaration (xmlns="...") from an XML string. Namespace declarations bound to a prefix (xmlns:p="...") are left alone: the pattern searched for is xmlns=" and does not match them. Returns true if at least one declaration was found and removed.

Released under Apache License, Version 2.0.