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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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="[EMAIL PROTECTED]/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 [email protected] http://mail.jabber.org/mailman/listinfo/jdev _______________________________________________ jdev mailing list [email protected] http://mail.jabber.org/mailman/listinfo/jdev
