Skip to main content

XmlFeedLinkExtractor

Extracts links from RSS and Atom XML feed documents.

Notesโ€‹

Extracts links from RSS and Atom XML feed documents by parsing standard feed elements. Supports content-type restrictions to limit extraction to feed-type documents.

Examplesโ€‹

The following example ensures this link extractor should only apply on documents that have their URL ending with "rss" (in addition to the default content types filtering).

class: XmlFeedLinkExtractor
restrictions:
- fieldMatcher:
pattern: document.reference
valueMatcher:
method: REGEX
pattern: .*rss$

Usageโ€‹

Full configuration skeleton, with every option and its default
class: XmlFeedLinkExtractor
contentTypeMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
restrictions:
- fieldMatcher: {}
valueMatcher: {}

Propertiesโ€‹

PropertyTypeRequiredDefault
contentTypeMatcherTextMatcherNoTextMatcher
fieldMatcherTextMatcherNoTextMatcher
restrictionsPropertyMatcher[]No-

Property Detailsโ€‹

contentTypeMatcherโ€‹

Restricts processing to documents whose content type matches the specified pattern. When not set, the handler applies to all content types.

fieldMatcherโ€‹

Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.

restrictionsโ€‹

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.