OfficeIMO.Opml
3.4.2
Prefix Reserved
dotnet add package OfficeIMO.Opml --version 3.4.2
NuGet\Install-Package OfficeIMO.Opml -Version 3.4.2
<PackageReference Include="OfficeIMO.Opml" Version="3.4.2" />
<PackageVersion Include="OfficeIMO.Opml" Version="3.4.2" />
<PackageReference Include="OfficeIMO.Opml" />
paket add OfficeIMO.Opml --version 3.4.2
#r "nuget: OfficeIMO.Opml, 3.4.2"
#:package OfficeIMO.Opml@3.4.2
#addin nuget:?package=OfficeIMO.Opml&version=3.4.2
#tool nuget:?package=OfficeIMO.Opml&version=3.4.2
OfficeIMO.Opml
OfficeIMO.Opml creates, reads, edits, validates, converts, and writes OPML 1.0 and 2.0 documents without a third-party parser. A declared OPML 1.1 document is read using the 1.0 profile, as specified by OPML 2.0.
Install
dotnet add package OfficeIMO.Opml
using OfficeIMO.Opml;
OpmlDocument document = OpmlDocument.Create(OpmlVersion.Opml20);
document.Head.Title = "Subscriptions";
OpmlOutline folder = document.AddOutline("Technology");
OpmlOutline feed = folder.AddChild("OfficeIMO");
feed.Type = "rss";
feed.XmlUrl = "https://example.com/feed.xml";
feed.HtmlUrl = "https://example.com/";
document.Validate();
document.Save("subscriptions.opml");
Standard subscription attributes are typed, while GetAttribute and SetAttribute accept XName for namespaced extensions. Unknown attributes, elements, comments, processing instructions, and namespace declarations remain in the backing XDocument. An unchanged file or stream is written byte-for-byte; after an edit, preserved XML is serialized around the changed values.
ToOfficeDocumentModel() and FromOfficeDocumentModel() map nested outlines through OfficeDocumentModel.Structure; subscription and outline URLs are also published through OfficeDocumentModel.Links. Independent flat blocks or links are appended as top-level outlines when recursive structure does not already represent them, with a placement-loss diagnostic. Tables, assets, pages, forms, and structured visuals have no OPML outline equivalent, so reverse conversion omits each populated item with a loss diagnostic. Both conversion directions enforce OpmlConversionOptions.MaxStructureDepth and MaxStructureNodes; reverse conversion also rejects cyclic structures. Conversion results implement IOfficeConversionReport, so callers can inspect diagnostics or call RequireNoLoss().
Safety and profile limits
- XML DTDs and external entity resolution are disabled.
- Default limits are 16 MiB encoded input, 16 million XML characters, 128 levels, 250,000 total elements, 100,000 outlines, and 500,000 attributes. Override them with
OpmlReadOptions. - Validation covers the OPML root/head/body contract, declared version, required
text, RSSxmlUrl, and link/includeurl. - Validation and conversion retain at most 100 detailed diagnostics per code by default, followed by one occurrence summary. Override the budget with
OpmlValidationOptionsorOpmlConversionOptions. - Reader integration is provided by
OfficeIMO.Reader.Opml.
The implemented vocabulary follows the OPML 2.0 specification. Targets: netstandard2.0, net8.0, net10.0, and net472 on Windows.
Dependency footprint
- External: None.
- OfficeIMO:
OfficeIMO.Core.
See the complete OfficeIMO package map for related formats and conversion paths.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- OfficeIMO.Core (>= 3.4.2)
-
.NETStandard 2.0
- OfficeIMO.Core (>= 3.4.2)
-
net10.0
- OfficeIMO.Core (>= 3.4.2)
-
net8.0
- OfficeIMO.Core (>= 3.4.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OfficeIMO.Opml:
| Package | Downloads |
|---|---|
|
OfficeIMO.Reader.Opml
Modular OfficeIMO.Reader adapter for bounded OPML ingestion. |
GitHub repositories
This package is not used by any popular GitHub repositories.