[jdev] My outgoing jabber packet
Dan Plesse
dplesse at optonline.net
Mon Mar 7 14:23:59 CST 2005
While examining my outgoing data packet I see a copy of the message inside a
<html xmlns="http://www.w3.org/1999/xhtml"></html> tag
Example:
<message id="m_8" type="chat" to="danp5648 at jabber.org/Exodus"><body>hello
back</body><html xmlns="http://www.w3.org/1999/xhtml">hello
back</html></message>
I was wondering how I can use this to advance my skills beyond just text
messages.
Right now I am just peeling the text out with XML
Like so:
thisXML.firstChild.childNodes[1].childNodes[0].nodeValue
Q #2 Is their an easier way parse this packet? Like using the attribute
names and not arrays? Thanks
More information about the JDev
mailing list