Andorra Suite Documentation

Unit AdSimpleXML

Uses

Unit dependencies

View fullscreen

Description

Unit which is used for parsing XML-Files. Originally "JclSimpleXML.pas".

Structures

class

packed record

Functions

function SimpleXMLEncode
(const S: String): String;
procedure SimpleXMLDecode
(var S: String; TrimBlanks: Boolean);
function XMLEncode
(const S: String): String;
function XMLDecode
(const S: String): String;
function EntityEncode
(const S: String): String;
function EntityDecode
(const S: String): String;

Enumerations

Constants

RsEInvalidXMLElementUnexpectedCharacte
=
    'Invalid XML Element: Unexpected character in property declaration ("%s" found)';
RsEInvalidXMLElementUnexpectedCharacte_
=
    'Invalid XML Element: Unexpected character in property declaration. Expecting " or '' but "%s"  found';
RsEUnexpectedValueForLPos
= 'Unexpected value for lPos';
RsEInvalidXMLElementExpectedBeginningO
= 'Invalid XML Element: Expected beginning of tag but "%s" found';
RsEInvalidXMLElementExpectedEndOfTagBu
= 'Invalid XML Element: Expected end of tag but "%s" found';
RsEInvalidXMLElementMalformedTagFoundn
= 'Invalid XML Element: malformed tag found (no valid name)';
RsEInvalidXMLElementErroneousEndOfTagE
=
    'Invalid XML Element: Erroneous end of tag, expecting </%0:s> but </%1:s> found';
RsEInvalidCommentExpectedsButFounds
= 'Invalid Comment: expected "%0:s" but found "%1:s"';
RsEInvalidCommentNotAllowedInsideComme
= 'Invalid Comment: "--" not allowed inside comments';
RsEInvalidCommentUnexpectedEndOfData
= 'Invalid Comment: Unexpected end of data';
RsEInvalidCDATAExpectedsButFounds
= 'Invalid CDATA: expected "%0:s" but found "%1:s"';
RsEInvalidCDATAUnexpectedEndOfData
= 'Invalid CDATA: Unexpected end of data';
RsEInvalidHeaderExpectedsButFounds
= 'Invalid Header: expected "%0:s" but found "%1:s"';
RsEInvalidStylesheetExpectedsButFounds
= 'Invalid Stylesheet: expected "%0:s" but found "%1:s"';
RsEInvalidStylesheetUnexpectedEndOfDat
= 'Invalid Stylesheet: Unexpected end of data';
RsEInvalidDocumentUnexpectedTextInFile
= 'Invalid Document: Unexpected text in file prolog';

Types

TAdOnSimpleXMLParsed
= procedure(Sender: TObject; Name: String) of object;
TAdOnValueParsed
= procedure(Sender: TObject; Name, Value: String) of object;
TAdOnSimpleProgress
= procedure(Sender: TObject; const Position, Total: Integer) of object;
PAdHashElem
= ^TAdHashElem;
PAdHashRecord
= ^TAdHashRecord;
TAdHashList
= array [0..25] of PAdHashRecord;
PAdHashList
= ^TAdHashList;
TAdSimpleXMLElemCompare
= function(Elems: TAdSimpleXMLElems; Index1, Index2: Integer): Integer of object;
TAdSimpleXMLElemClass
= class of TAdSimpleXMLElem;
TAdSimpleXMLOptions
= set of (sxoAutoCreate, sxoAutoIndent, sxoAutoEncodeValue,
    sxoAutoEncodeEntity, sxoDoNotSaveProlog, sxoTrimPrecedingTextWhitespace);
TAdSimpleXMLEncodeEvent
= procedure(Sender: TObject; var Value: String) of object;
TAdSimpleXMLEncodeStreamEvent
= procedure(Sender: TObject; InStream, OutStream: TStream) of object;

This page was generated by a documentation system written by Andreas Stoeckel. This system makes use of a modified PasDoc version (download can be found here) and Graphviz.

Get Andorra Commons at SourceForge.net. Fast, secure and Free Open Source software downloads