This project is read-only.

Getting Started With Gepsio

Working with Gepsio is extremely straightforward:

1. Reference the JeffFerguson.Gepsio.dll assembly in your .NET 3.5 project.
2. Create an instance of the JeffFerguson.Gepsio.XbrlDocument class.
3. Call Load() on the JeffFerguson.Gepsio.XbrlDocument class instance, passing in, as a parameter, the path to the XBRL document you wish to load.

If the loading is successful, then the call from Load() will return and you can begin inspecting the properties of your JeffFerguson.Gepsio.XbrlDocument class instance to examine your XBRL document. If the load was not successful, then Gepsio will throw an exception of type JeffFerguson.Gepsio.XbrlException, which will describe the load problem in detail.

Here is a simple console application written in C#:
using System;
using JeffFerguson.Gepsio;

namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            XbrlDocument Doc = new XbrlDocument();
            try
           {
               Doc.Load("xbrldoc.xml");
            }
            catch (XbrlException e)
            {
                Console.WriteLine(e.Message);
            }
        }
    }
} 

Here is the same simple console application written in Visual BASIC .NET:
Imports JeffFerguson.Gepsio
Module Sample

Sub Main()
    Dim Doc As New XbrlDocument

    Try
        Doc.Load("xbrldoc.xml")
    Catch ex As XbrlException
        Console.WriteLine(ex.Message)
    End Try
End Sub

End Module

Here is the same simple console application written in C++/CLI:
#include "stdafx.h"

using namespace System;
using namespace JeffFerguson::Gepsio;

int main(array<System::String ^> ^args)
{
    XbrlDocument^ Doc = gcnew XbrlDocument();
    try
    {
        Doc->Load("xbrldoc.xml");
    }
    catch(XbrlException^ ex)
    {
       Console::WriteLine(ex->Message);
    }
    Console::WriteLine(L"Hello World");
    return 0;
}

That’s all there is to it!

Once the call to Load() returns, you can examine the properties of the XbrlDocument object to get more information about the loaded XBRL document. See the section in the doanloadable PDF called “Gepsio Object Model” for more information on the Gepsio object model and the properties that describe the makeup of the loaded XBRL document.

Last edited Jan 31, 2011 at 1:11 AM by JeffreyFerguson, version 2

Comments

No comments yet.