The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ScanForXMLAttrib


Unit:SDL_streams
Class:none
Declaration:function ScanForXMLAttrib (Attributes, AttribName: string): string;

The function ScanForXMLAttrib scans the string Attributes for an attribute definition specified in the parameter  AttribName. The function returns the value of the attribute, or an empty string if the attribute is not contained in the string Attributes all.

Example: Suppose the variable astr contains the following string:
   indexid="persix" filename="persix" vistitle="Personal" visibility="admin"
Then the statement bstr := ScanForXMLAttrib (astr, 'vistitle'); assigns the string 'Personal' to the string bstr.



Last Update: 2012-Oct-20