Skip navigation links

Package com.rometools.opml.feed.opml

This package represents the base objects for OPML support for ROME.

See: Description

Package com.rometools.opml.feed.opml Description

This package represents the base objects for OPML support for ROME.

There are three classes here that are relevant. Opml, which represents the root document and head information, Outline which represents a single node on an Opml outline tree, and provides convenience methods for commonly used attributes such as xmlUrl. Finally, the Attribute class, which represents a specific attribute on an Outline object. Since OPML supports free-form attribute assignments, this is a very multi-purpose class.

Sample Usage: To use this parser, simply include the jar file in your classpath as you are using ROME. Be sure it exists at the same level as ROME, such that, if ROME is in the common classpath of an application server, don't include this jar in your webapps WEB-INF/lib.

  WireFeedInput input = new WireFeedInput();
  Opml feed = (Opml) input.build( new File("myOpml.xml") );
  List<Outline> outlines = (List<Outline>) feed.getOutlines();
        

Skip navigation links

Copyright © 2022. All rights reserved.