
XML::Generator::vCard::RDF - generate RDF/XML SAX2 events for vCard 3.0

use XML::SAX::Writer;
use XML::Generator::vCard::RDF;
my $writer = XML::SAX::Writer->new();
my $driver = XML::Generator::vCard::RDF->new(Handler=>$writer);
$driver->parse_files("test.vcf");

Generate RDF/XML SAX2 events for vCard 3.0

SAX2 events map to the Representing vCard Objects in RDF/XML W3C note:
http://www.w3.org/TR/2001/NOTE-vcard-rdf-20010222/

This method inherits from XML::SAX::Base

Generate SAX2 events for one, or more, vCard files.
Returns true or false.

Private methods are documented below in case you need to subclass this package to tweak its output.
By default this method does nothing. It is here to be subclassed.
Returns a hash ref mapping an instant messaging service type to an XML element. Default is :
{"aim" => "foaf:aimChatID",
"yahoo" => "foaf:yahooChatID",
"msn" => "foaf:msnChatID",
"jabber" => "foaf:JabberID",
"icq" => "foaf:icqChatId"}
This is called by the _render_instantmessaging method.
Returns a hash reference of prefix - URI pairs.

This package generates SAX events using the following XML namespaces :
http://www.w3.org/2001/vcard-rdf/3.0#
http://www.w3.org/1999/02/22-rdf-syntax-ns#
http://xmlns.com/foaf/0.1/
http://www.w3.org/2003/01/geo/wgs84_pos#

1.1

$Date: 2004/10/17 23:05:35 $

Aaron Straup Cope <ascope@cpan.org>


Please report all bugs via http://rt.cpan.org

Copyright (c) 2004, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.