Create XBRL file in C#

Create XBRL Instance in C#

Aspose.Finance supports creating XBRL documents. For this, the API provides the XbrlDocument class. The default constructor of the XbrlDocument class can be used to create a new XBRL instance document.

The following code snippet demonstrates creating a new XBRL instance document.

Add schema reference

Aspose.Finance allows you to add schema reference in newly created XBRL instance. For this, the API provides the SchemaRefCollection class.

The following code snippet demonstrates adding schema reference to a newly created XBRL instance.

Add context

Aspose.Finance allows you to add context in the newly created XBRL instance. For this, the API provides the Context class.

The following code snippet demonstrates adding context in a newly created XBRL instance.

Add unit

Aspose.Finance allows you to add context in the newly created XBRL instance. For this, the API provides the Unit class.

The following code snippet demonstrates how to add a unit in a newly created XBRL instance.

Add item

Aspose.Finance allows you to add items in the newly created XBRL instance. For this, the API provides the Item class.

The following code snippet demonstrates how to add an item in a newly created XBRL instance.

Aspose.Finance allows you to add a footnote link in the newly created XBRL instance. For this, the API provides the FootnoteLink class.

The following code snippet demonstrates how to add a footnote link in a newly created XBRL instance.

Add role reference

Aspose.Finance allows you to add a role reference in the newly created XBRL instance. For this, the API provides the RoleReference class.

The following code snippet demonstrates how to add a role reference in a newly created XBRL instance.

Add arc role reference

Aspose.Finance allows you to add an arc role reference in the newly created XBRL instance. For this, the API provides the ArcroleReference class.

The following code snippet demonstrates how to add an arc role reference in a newly created XBRL instance.