Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.04 KB

File metadata and controls

61 lines (45 loc) · 1.04 KB

ReadXMLMemory

Description

Opens an XML file for reading from a string buffer.

FUNCTION ReadXMLMemory(
				XMLHandle : LONGINT;
				XMLData   : DYNARRAY [] OF CHAR):INTEGER;
def vs.ReadXMLMemory(XMLHandle, XMLData):
    return INTEGER

Parameters

Name Type Description
XMLHandle LONGINT
XMLData DYNARRAY [] OF CHAR

Examples

VectorScript

procedure test;
var 	xml : longint;
	err : integer;
	mem : dynarray of char;
	value : string;

begin
	mem := '<root><value>34</value></root>';

	xml := InitXML;	

	err := ReadXMLMemory( xml, mem );
	err := GetElementValue( xml, '/root/value', value );


	AlrtDialog( Concat( 'value=', value ) );

	err := ReleaseXML( xml );
end;
run(test);

Python

See Also

GetElementValue | InitXML | ReleaseXML | WriteXMLMemory

Version

Availability: from All Versions

This is drop-in function.

Category