<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wirestorm &#187; XPCOM</title>
	<atom:link href="http://wirestorm.net/blog/category/xpcom/feed/?category_name=xpcom" rel="self" type="application/rss+xml" />
	<link>http://wirestorm.net/blog</link>
	<description>Ray Hilton&#039;s blog about interesting technology</description>
	<lastBuildDate>Mon, 12 Dec 2011 11:07:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2-bleeding</generator>
		<item>
		<title>Passing Arguments using JavaXPCOM</title>
		<link>http://wirestorm.net/blog/2006/06/06/passing-arguments-using-javaxpcom/</link>
		<comments>http://wirestorm.net/blog/2006/06/06/passing-arguments-using-javaxpcom/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 10:57:41 +0000</pubDate>
		<dc:creator>rayh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[XPCOM]]></category>
		<category><![CDATA[XUL]]></category>

		<guid isPermaLink="false">http://rayh.co.uk/blog/?p=15</guid>
		<description><![CDATA[Following on from yesterday, I needed to pass arguments to the window being opened. The data I needed to pass was quite simple, so I simply serialized it to JSON and then passed them as strings in a nsICollection (actually, a @mozilla.org/supports-array;1 collection of @mozilla.org/supports-string;1) and then just eval()&#8217;d the data within the xul window&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from yesterday, I needed to pass arguments to the window being opened.  The data I needed to pass was quite simple, so I simply serialized it to JSON and then passed them as strings in a nsICollection (actually, a @mozilla.org/supports-array;1 collection of @mozilla.org/supports-string;1) and then just eval()&#8217;d the data within the xul window&#8217;s javascript.</p>
<p>This is a bit of a hack,  but its probably the simplest way of passing structured data.  What would be nice is a bit of code that would automagically serialize a bean to JSON notation&#8230; I&#8217;m sure there are many out there (<a href="http://struts.apache.org/struts-sandbox/struts-flow/apidocs/org/apache/struts/flow/json/JSONSerializer.html">This apache struts class looks promising</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://wirestorm.net/blog/2006/06/06/passing-arguments-using-javaxpcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

