OPML Parser for .NET Core (C#)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
src/OPMLCore.NET
test
.gitignore
LICENSE
OPMLCoredotNET.sln
README.md

README.md

OPMLCore.NET

OPMLCore.NET is OPML Parser which easy to use for .NET Core Applications.

It is written in C# and with Visual Studio Code.

It supports .NET Core 2.0.

Setting

You shoud add project refference to your project.

The below is sample .csproj which is added project refference.

  <ItemGroup>
    <ProjectReference Include="..\src\OPMLCore.NET\OPMLCore.NET.csproj" />
  </ItemGroup>

And then dotnet restore.

Usage

How to use is below.

using OPMLCore.NET; //Add

Opml opml = new Opml("opmlFilePath");

foreach (Outline outline in opml.Body.Outlines) 
{
    //Output outline node
    Console.WriteLine(outline.Text);
    Console.WriteLine(outline.XMLUrl);
    
    //output child's output node
    foreach (Outline childOutline in outline.Outlines)
    {
        Console.WriteLine(childOutline.Text);
        Console.WriteLine(childOutline.XMLUrl);                    
    }
}

For more detail, show test code or source code.

License

Lisense is MIT License.