Scratch for Java

File::loadXML()

Loads an object of the specified class from an XML file at the given path.

Syntax

Java

.loadXML(path, cls)

Parameters

Name Data Type Description
path String the path to the XML file
cls Class<T> the class of the object to be loaded

Return

T

loadXML()