VS:WriteXMLMemory

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Writes XML file into a dynamic string buffer.
FUNCTION WriteXMLMemory(
XMLHandle  :LONGINT;
VAR XMLData  :DYNARRAY [] OF CHAR) :INTEGER;
def vs.WriteXMLMemory(XMLHandle):
    return (INTEGER, XMLData)

Parameters

XMLHandle LONGINT
XMLData DYNARRAY [] OF CHAR Output parameter.

Example

VectorScript

PROCEDURE test;
VAR 	xml : LONGINT;
	err : INTEGER;
	mem : DYNARRAY OF CHAR;
	value : STRING;

BEGIN
	mem := '';

	xml := InitXML;	

	err := CreateNewXMLDocument( xml, 'root' );

	err := SetElementValue( xml, '/root/value', '34' );

	err := WriteXMLMemory( xml, mem );

	AlrtDialog( mem );

	err := ReleaseXML( xml );
END;
RUN(test);

Python


Version

Availability: from All Versions

This is drop-in function.

See Also

VS:CreateNewXMLDocument | VS:SetElementValue | VS:InitXML | VS:ReleaseXML | VS:ReadXMLMemory
[[VS:CreateNewXMLDocument]] | [[VS:SetElementValue]] | [[VS:InitXML]] | [[VS:ReleaseXML]] | [[VS:ReadXMLMemory]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox