<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Writing XIFF Extensions To Pass Custom Data Over XMPP</title>
	<atom:link href="http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/feed/" rel="self" type="application/rss+xml" />
	<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/</link>
	<description>lulz</description>
	<lastBuildDate>Sat, 07 Jan 2012 17:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Mohammad Shafiullah</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-2068</link>
		<dc:creator>Mohammad Shafiullah</dc:creator>
		<pubDate>Fri, 20 May 2011 14:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-2068</guid>
		<description>Hi,
Nice topic. Very few people are working on XIFF
a) I want to populate all the groups on openfire 3.7 server from XIFF......how can i do that? the groups are not shared......RosterGroup is giving only groups to which current user is registered.
b) How to implement searching a user based on his name.....with XIFF...i have been trying Search Extension but no success......can u help please...</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Nice topic. Very few people are working on XIFF<br />
a) I want to populate all the groups on openfire 3.7 server from XIFF&#8230;&#8230;how can i do that? the groups are not shared&#8230;&#8230;RosterGroup is giving only groups to which current user is registered.<br />
b) How to implement searching a user based on his name&#8230;..with XIFF&#8230;i have been trying Search Extension but no success&#8230;&#8230;can u help please&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proweb</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-1992</link>
		<dc:creator>proweb</dc:creator>
		<pubDate>Sun, 06 Mar 2011 21:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-1992</guid>
		<description>Hi Mark! Thank you for your good topic.

Can you write some your UserExtension class code?
And code for use this class in project?

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi Mark! Thank you for your good topic.</p>
<p>Can you write some your UserExtension class code?<br />
And code for use this class in project?</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roy</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-1951</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Sat, 08 May 2010 12:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-1951</guid>
		<description>HI Mark,
This is very useful post. Actually I am working on XMPP, I have a doubt. I need to pass some data to my roster (company, userEmail etc.). So I created a custom Extension.
package net.firstcourt.Extensions
{
	import flash.xml.XMLNode;
	
	import net.firstcourt.GlobalConst;
	
	import org.jivesoftware.xiff.data.Extension;
	import org.jivesoftware.xiff.data.ExtensionClassRegistry;
	import org.jivesoftware.xiff.data.IExtension;
	import org.jivesoftware.xiff.data.ISerializable;

	public class UserExtension extends Extension implements IExtension, ISerializable
	{
		public static var NS:String = GlobalConst.SERVER + &quot;/UserExtension&quot;;
		public static var ELEMENT:String = &quot;userData&quot;;
		
		public var companyName:String;
		private var myNode:XMLNode;
		

			
		public function UserExtension( parent:XMLNode=null )
		{
			super( parent );
			myNode = parent;
			//myNode = new XMLNode(1, &#039;company&#039;);  
			//myNode.nodeValue = &quot;myCom&quot;;

		}

		public function getNS():String
		{
			return NS;
		}
		
		public function getElementName():String
		{
			return ELEMENT;
		}
		
		public function serialize( parentNode:XMLNode ):Boolean
		{

				parentNode.appendChild(myNode);

			return true;
		}
		
		public function deserialize( node:XMLNode ):Boolean
		{
			setNode(node);
	
			var children:Array = getNode().childNodes;
			for( var i:String in children ) {
				switch( children[i].nodeName )
				{
					case &quot;company&quot;:
						companyName = children[i];
						break;
				
				}
			}
			return true;
		}
		public static function enable():void
	    {
	        ExtensionClassRegistry.register(UserExtension);
	    }

	}
}

and I tried to connect with room
var myNode:XMLNode = new XMLNode(1, &#039;company&#039;);  
			myNode.nodeValue = &quot;myCom&quot;;
			
			var userExtension:UserExtension = new UserExtension(myNode);
			var message:Message = new Message();
			message.addExtension(userExtension);
			
			xmppSocketConnection.send(message);
			
			
			
			
			var joined:Boolean = room.join(false,[userExtension]);
is this right?
from where I can get the company?

please help me.

Thanks
Roy</description>
		<content:encoded><![CDATA[<p>HI Mark,<br />
This is very useful post. Actually I am working on XMPP, I have a doubt. I need to pass some data to my roster (company, userEmail etc.). So I created a custom Extension.<br />
package net.firstcourt.Extensions<br />
{<br />
	import flash.xml.XMLNode;</p>
<p>	import net.firstcourt.GlobalConst;</p>
<p>	import org.jivesoftware.xiff.data.Extension;<br />
	import org.jivesoftware.xiff.data.ExtensionClassRegistry;<br />
	import org.jivesoftware.xiff.data.IExtension;<br />
	import org.jivesoftware.xiff.data.ISerializable;</p>
<p>	public class UserExtension extends Extension implements IExtension, ISerializable<br />
	{<br />
		public static var NS:String = GlobalConst.SERVER + &#8220;/UserExtension&#8221;;<br />
		public static var ELEMENT:String = &#8220;userData&#8221;;</p>
<p>		public var companyName:String;<br />
		private var myNode:XMLNode;</p>
<p>		public function UserExtension( parent:XMLNode=null )<br />
		{<br />
			super( parent );<br />
			myNode = parent;<br />
			//myNode = new XMLNode(1, &#8216;company&#8217;);<br />
			//myNode.nodeValue = &#8220;myCom&#8221;;</p>
<p>		}</p>
<p>		public function getNS():String<br />
		{<br />
			return NS;<br />
		}</p>
<p>		public function getElementName():String<br />
		{<br />
			return ELEMENT;<br />
		}</p>
<p>		public function serialize( parentNode:XMLNode ):Boolean<br />
		{</p>
<p>				parentNode.appendChild(myNode);</p>
<p>			return true;<br />
		}</p>
<p>		public function deserialize( node:XMLNode ):Boolean<br />
		{<br />
			setNode(node);</p>
<p>			var children:Array = getNode().childNodes;<br />
			for( var i:String in children ) {<br />
				switch( children[i].nodeName )<br />
				{<br />
					case &#8220;company&#8221;:<br />
						companyName = children[i];<br />
						break;</p>
<p>				}<br />
			}<br />
			return true;<br />
		}<br />
		public static function enable():void<br />
	    {<br />
	        ExtensionClassRegistry.register(UserExtension);<br />
	    }</p>
<p>	}<br />
}</p>
<p>and I tried to connect with room<br />
var myNode:XMLNode = new XMLNode(1, &#8216;company&#8217;);<br />
			myNode.nodeValue = &#8220;myCom&#8221;;</p>
<p>			var userExtension:UserExtension = new UserExtension(myNode);<br />
			var message:Message = new Message();<br />
			message.addExtension(userExtension);</p>
<p>			xmppSocketConnection.send(message);</p>
<p>			var joined:Boolean = room.join(false,[userExtension]);<br />
is this right?<br />
from where I can get the company?</p>
<p>please help me.</p>
<p>Thanks<br />
Roy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elfather</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-1939</link>
		<dc:creator>elfather</dc:creator>
		<pubDate>Sat, 13 Mar 2010 14:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-1939</guid>
		<description>Hi,
I have a single problem, when I connect to server chat, after 6 or 7 minutes, the chat is disconnect from server and I don’t know why. Do someone have the solution?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a single problem, when I connect to server chat, after 6 or 7 minutes, the chat is disconnect from server and I don’t know why. Do someone have the solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-1806</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 07 Sep 2009 16:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-1806</guid>
		<description>Hey Gianluca,

I appreciate the kind words!
Unfortunately, the extension that I wrote is tied very tightly to my company&#039;s chat rooms so I can&#039;t share the code.
But if you have any specific questions, ask them here and I&#039;ll respond as best I can.</description>
		<content:encoded><![CDATA[<p>Hey Gianluca,</p>
<p>I appreciate the kind words!<br />
Unfortunately, the extension that I wrote is tied very tightly to my company&#8217;s chat rooms so I can&#8217;t share the code.<br />
But if you have any specific questions, ask them here and I&#8217;ll respond as best I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca</title>
		<link>http://yourpalmark.com/2009/07/30/writing-xiff-extensions-to-pass-custom-data-over-xmpp/comment-page-1/#comment-1805</link>
		<dc:creator>Gianluca</dc:creator>
		<pubDate>Mon, 07 Sep 2009 09:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://yourpalmark.com/?p=522#comment-1805</guid>
		<description>Wow. All of my best compliments for your write-up. The XIFF project is really an amazing library, but it lacks of enough people talking about it. Soon I will finish my project with XIFF. I did have few issues finding out things by myself, especially since I am not a programmer (I am a frontend developer).

Although I succeeded to work out user self-registration, room creation/configuration, and the presence, even though I DID fail trying to achieve what you did.

Is there any way you could share your extention code with us? If not, I&#039;ll understand. Anyhow, great work! Keep it up.</description>
		<content:encoded><![CDATA[<p>Wow. All of my best compliments for your write-up. The XIFF project is really an amazing library, but it lacks of enough people talking about it. Soon I will finish my project with XIFF. I did have few issues finding out things by myself, especially since I am not a programmer (I am a frontend developer).</p>
<p>Although I succeeded to work out user self-registration, room creation/configuration, and the presence, even though I DID fail trying to achieve what you did.</p>
<p>Is there any way you could share your extention code with us? If not, I&#8217;ll understand. Anyhow, great work! Keep it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

