[JDEV] XHTML message draft support in Net::Jabber? (fwd)

Benjamin Reed ben at opennms.org
Tue May 8 09:17:22 CDT 2001


Soooo.... I take it the perl-dev list is deprecated?  Haven't heard
anything yet...  :)

---------- Forwarded message ----------
Date: Mon, 7 May 2001 14:32:46 -0400 (EDT)
From: Benjamin Reed <ben at opennms.org>
To: perl-dev at jabber.org
Subject: XHTML message draft support in Net::Jabber?

I was just curious, how would I go about supporting the xhtml messaging
draft using Net::Jabber?  It looks as if it has generic routines for
creating stuff, but the NewX() methods and such have not sunk in yet.  =)

Would it be something like:

my $reply = $message->Reply();
$reply->SetSubject('my response');
$reply->SetBody('non-xhtmlized body');
$reply->SetType('chat');

$reply->NewX('http://ww.w3.org/1999/xhtml', 'html');

...and I guess from there I'm not terribly sure how to go any further.
Digging through X.pm I have a feeling I'm barking up the wrong tree, but
I'm not sure how the XML tree is parsed.

Any hints?  =)


-- 
Ben Reed
OpenNMS
ben at opennms.org





More information about the JDev mailing list