World Library  
Flag as Inappropriate
Email this Article

Opml

Article Id: WHEBN0000696653
Reproduction Date:

Title: Opml  
Author: World Heritage Encyclopedia
Language: English
Subject: XOXO (microformat), XBEL, Dave Winer, Lightweight markup language, List of XML markup languages
Collection: Web Syndication Formats, Xml-Based Standards
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Opml

OPML
Filename extension .opml
Internet media type application/xml, text/xml, text/x-opml
Type of format Outline
Extended from XML

OPML (Outline Processor Markup Language) is an XML format for outlines (defined as "a tree, where each node contains a set of named attributes with string values"[1]). Originally developed by UserLand as a native file format for the outliner application in its Radio UserLand product, it has since been adopted for other uses, the most common being to exchange lists of web feeds between web feed aggregators.

The OPML specification defines an outline as a hierarchical, ordered list of arbitrary elements. The specification is fairly open which makes it suitable for many types of list data.

Support for OPML is available in Mozilla Thunderbird, and many other RSS reader web sites and applications can both import and export OPML files of subscriptions.

Contents

  • XML format 1
  • Shortcomings 2
  • Validation 3
  • Example OPML documents 4
  • Alternative specifications 5
  • See also 6
  • References 7
  • External links 8

XML format

The XML elements in an OPML document are:

This is the root element. It must contain the version attribute and one head and one body element.
Contains metadata. May include any of these optional elements: title, dateCreated, dateModified, ownerName, ownerEmail, expansionState, vertScrollState, windowTop, windowLeft, windowBottom, windowRight. Each element is a simple text element. dateCreated and dateModified contents conform to the date-time format specified in RFC 822. expansionState contains a comma-separated list of line numbers that should be expanded on display. The windowXXX elements define the position and size of the display window. An OPML processor may ignore all the head sub-elements. If the outline is opened inside another outline then the processor must ignore the window elements.
Contains the content of the outline. Must have at least one outline element.
Represents a line in the outline. May contain any number of arbitrary attributes. Common attributes include text and type. The outline element may contain any number of outline sub-elements.

Shortcomings

  1. The RFC 822 date format is considered obsolete, and amongst other things permits the representation of years as two digits. (RFC 822 has been superseded by RFC 2822 then RFC 5322.) In general, date and time formats should be represented according to RFC 3339.
  2. Due to the semantics of the "expansionState" attribute:
    • The expansion state of the children of collapsed nodes cannot be stored
    • When an outline element is expanded, collapsed, added, deleted or moved, the expansion state of all elements below it must be recalculated
  3. Due to the arbitrary nature of the "type" attribute, and the acceptance of arbitrary attributes on "outline" elements, interoperability of OPML documents relies almost entirely on the undocumented conventions of content producers.
  4. MIME types aren't clear; text/xml usually merely identifies the document as having XML content, while text/x-opml does not specify that the document is XML since it lacks the +xml suffix (see XML and MIME).

Validation

Dave Winer has made a request for comments on a proposal for validating OPML and released a beta OPML validator.

Katy Ginger from DLESE has published an XML Schema Document for validating OPML 2.0. There is also a DTD available for OPML 1.0.

Example OPML documents

  • Play list
  • Specification
  • Presentation
  • Directory

Alternative specifications

Alternative specifications have been proposed, notably these include OML, XOXO and XBEL.

See also

References

  1. ^ "OPML 2.0 Specification". Retrieved 18 March 2014. 

External links

  • OPML 1.0 Specification
  • OPML 2.0 Specification
  • OPML Editor app
  • OPML Icon Files
  • OPML Viewer-Editor
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from World Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.