#!/usr/bin/perl use lib "lib"; use RDF::RDFa::Parser; my $xml = <<'XML'; http://argot-hub.googlecode.com/svn/trunk/_samples/hmrc/datarss-assistant-officer.xml HMRC HMRC's vacancies feed 2008-07-07T18:30:02Z http://www.hmrc.gov.uk/jobs/psr/assistant-officer.htm Assistant Officer HMRC 160 62 CN-EXT-15-08 Assistant Officer Analysing data and process applications in given timescales, liasing with customers and their representatives, working with colleagues to achieve team targets. In addition to all of the other benefits that come with working with us, you will enjoy 22 days annual leave, rising to 25 after a year, plus 10.5 public and privilege days and access to a civil service pension scheme. Wolverhampton annual 15262 15262 full-time 2008-08-08 XML my $parser = RDF::RDFa::Parser->new( $xml, 'http://example.net/', RDF::RDFa::Parser::Config->new('datarss')); my $iterator = $parser->graph->as_stream; while (my $st = $iterator->next) { print $st->as_string."\n"; } print "done\n";