See: Description
Class | Description |
---|---|
Attribute |
This is a simple name-value pair attribute for outlines.
|
Opml |
This class represents the root of an OPML 1/2 feed and contains the elements that may appear in the <head> tag
of the feed.
|
Outline |
This class represents an OPML outline element.
|
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();
Copyright © 2022. All rights reserved.