Opml (Opml v0.2.0)
View SourceParser module for OPML (Outline Processor Markup Language) files.
This module provides functionality to parse OPML files from either URLs or direct XML content, and converts the OPML structure into a more usable JSON-like map structure.
Summary
Functions
构建OPML XML字符串。
Parses an OPML file from either a URL or direct XML content. Returns a structured map representation of the OPML data.
Functions
构建OPML XML字符串。
参数
outlines
- 大纲元素列表options
- 可选配置项
返回
- 符合OPML 2.0规范的XML字符串
Parses an OPML file from either a URL or direct XML content. Returns a structured map representation of the OPML data.
Parameters
data
- A URL string pointing to an OPML file or a string containing OPML XML content
Returns
{:ok, map}
- Successfully parsed OPML data as a map{:error, reason}
- Error occurred during parsing