[jdev] My outgoing jabber packet
    Dan Plesse 
    dplesse at optonline.net
       
    Mon Mar  7 16:08:53 CST 2005
    
    
  
I just read somewhere that its slower to use XPath 
What about question #1 
<html xmlns="http://www.w3.org/1999/xhtml">hello</html> tag
-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf Of
Chris Mullins
Sent: Monday, March 07, 2005 3:55 PM
To: Jabber software development list
Subject: RE: [jdev] My outgoing jabber packet
The technology you're looking for is called XPath. 
http://www.w3schools.com/xpath/
Pretty much all current generation programming languages and
environments offer support for XPath. 
-- 
Chris Mullins
-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf
Of Dan Plesse
Sent: Monday, March 07, 2005 12:24 PM
To: 'Jabber software development list'
Subject: [jdev] My outgoing jabber packet
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 
 
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mail.jabber.org/mailman/listinfo/jdev
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mail.jabber.org/mailman/listinfo/jdev
    
    
More information about the JDev
mailing list