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.
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.
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.
Lisense is MIT License.