Olivier Thereaux > WebService-Validator-Feed-W3C > feedvalidate.pl

Download:
WebService/WebService-Validator-Feed-W3C-0.8.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

feedvalidate.pl - validate (check syntax) of online RSS or Atom feeds from the command line

USAGE ^

feedvalidate.pl uri [uri2 ...]

EXAMPLES ^

Use the URI of the online feed you want to check, the script will list the errors encountered:

  % ./feedvalidate.pl http://www.example.org/News.rss
  Validating feed http://www.w3.org/QA/News.rss...
  Invalid! 2 error(s)  
    * Missing channel element: description at line: 23 column: 0 
    * item must be a valid URI at line: 29 column: 0 

To batch validate several feeds, just give their addresses as a sequence separated by a space:

  % ./feedvalidate.pl http://www.example.org/News.rss % ./feedvalidate.pl http://www.example.org/Othernews.atom
  Validating feed http://www.example.org/News.rss...
  Invalid! 2 error(s)  
    * Missing channel element: description at line: 23 column: 0 
    * item must be a valid URI at line: 29 column: 0 
  Validating feed http://www.example.org/Othernews.atom
  Valid.
syntax highlighting: