Table of Contents

Class OFXDocument

Namespace
Tudormobile.QIFLibrary
Assembly
Tudormobile.QIFLibrary.dll

Provides mechanism for reading and writing data in Open Financial Exchange Format (OFX).

public class OFXDocument
Inheritance
OFXDocument
Inherited Members

Fields

CONTENT_TYPE

HTTP COntent Type

public static readonly string CONTENT_TYPE

Field Value

string

FILE_EXTENSION

Default file extension.

public static readonly string FILE_EXTENSION

Field Value

string

Properties

Headers

Document headers.

public OFXHeaders Headers { get; }

Property Value

OFXHeaders

MessageSets

Ordered list of message sets in the document.

public IList<OFXMessageSet> MessageSets { get; }

Property Value

IList<OFXMessageSet>

Root

Root element, if it exists.

public OFXProperty Root { get; }

Property Value

OFXProperty

Version

OFX Document Version.

public string Version { get; set; }

Property Value

string

Methods

DefaultHeaders()

Adds default headers, overwriting any existing of the same name.

public OFXDocument DefaultHeaders()

Returns

OFXDocument

Fluent-reference to this document.

Parse(Stream, bool)

Parses data into a OFX Document.

public static OFXDocument Parse(Stream utf8Stream, bool leaveOpen = true)

Parameters

utf8Stream Stream

OFX text to parse.

leaveOpen bool

Leave the provided stream open [OPTONAL; Default = true].

Returns

OFXDocument

An OFXDocument representation of the data.

Parse(string)

Parses data into a OFX Document.

public static OFXDocument Parse(string ofxData)

Parameters

ofxData string

OFX text to parse.

Returns

OFXDocument

A OFXDocument representation of the data.

ParseFile(string)

Parses data into a OFX Document.

public static OFXDocument ParseFile(string path)

Parameters

path string

The path to the file to be parsed.

Returns

OFXDocument

An OFXDocument representation of the data.

Save(string)

Save data to a file.

public void Save(string path)

Parameters

path string

Pathname to the file.