Unit AdXML

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains a few functions, which make it easier to work with the AdSimpleXML.pas. Functions will move to AdSimpleXML soon, so don't use this functions provided here. Will be merged with TAdSimpleXML soon.

Overview

Functions and Procedures

function WriteStreamToString(AStream:TStream): String;
procedure ReadStreamFromString(AStream:TStream;AString:String);
procedure WriteStream(AStream:TStream;XMLElem:TAdSimpleXMLElem;ElemName:String='data');
procedure ReadStream(AStream:TStream;XMLElem:TAdSimpleXMLElem;ElemName:String='data');

Description

Functions and Procedures

function WriteStreamToString(AStream:TStream): String;

Writes a stream into a string encoding it as hexadecimal values.

procedure ReadStreamFromString(AStream:TStream;AString:String);

Reads and decodes hexadecimal values from a string and stores them in a stream.

procedure WriteStream(AStream:TStream;XMLElem:TAdSimpleXMLElem;ElemName:String='data');

Writes a stream into a xml node.

Parameters
ElemName
specifies the name of the element the string is stored into.
procedure ReadStream(AStream:TStream;XMLElem:TAdSimpleXMLElem;ElemName:String='data');

Reads a stream writen by from a xml node. Please note, that "ReadStream" will first search for an element named "source", which may specify the path to a file which is loaded instead.

See also
WriteStream
Writes a stream into a xml node.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00