Einhugur Xml Plugin for Xojo |

# Document.FromFile Method

Loads document from file, returning EinhugurXml.Document.

shared FromFile(
f as FolderItem) as EinhugurXml.Document

#### Parameters

f
  The file to load from.

#### Returns

EinhugurXml.Document

#### Remarks

If there was error parsing the Xml then EinhugurXmlParserException is thrown. The EinhugurXmlParserException has properties to get details of what was wrong with the Xml file.

This function can throw EinhugurXmlParserException.

#### See Also

Document Class