<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Unable to access /var/www/html/rogue-development/blog2/wp-content/advanced-cache.php in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Warning</b>:  include(/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/html/rogue-development/blog2/wp-content/advanced-cache.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in <b>/var/www/html/rogue-development/blog2/wp-settings.php</b> on line <b>62</b><br />
<br />
<b>Notice</b>:  add_option was called with an argument that is <strong>deprecated</strong> since version 2.3 with no alternative available. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3468</b><br />
<br />
<b>Notice</b>:  register_sidebar_widget is <strong>deprecated</strong> since version 2.8! Use wp_register_sidebar_widget() instead. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3382</b><br />
<br />
<b>Notice</b>:  register_widget_control is <strong>deprecated</strong> since version 2.8! Use wp_register_widget_control() instead. in <b>/var/www/html/rogue-development/blog2/wp-includes/functions.php</b> on line <b>3382</b><br />
<?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>Marc's Musings &#187; xml</title>
	<atom:link href="http://www.rogue-development.com/blog2/category/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rogue-development.com/blog2</link>
	<description>Comments and thoughts on technology from Marc Hughes</description>
	<lastBuildDate>Tue, 29 Mar 2011 00:04:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>XML Facade instead of value objects?</title>
		<link>http://www.rogue-development.com/blog2/2007/11/xml-facade-instead-of-value-objects/</link>
		<comments>http://www.rogue-development.com/blog2/2007/11/xml-facade-instead-of-value-objects/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 14:33:00 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=89</guid>
		<description><![CDATA[I have a project I&#8217;m working on where it&#8217;d be great if older versions of the software preserved information in the XML file format that it didn&#8217;t understand. For example, imagine if Version 1 (V1) of the software had this for a file format: &#60;data&#62;&#60;value&#62;1&#60;/value&#62;&#60;/data&#62; Now imagine if V2 of the file added an attribute [...]]]></description>
			<content:encoded><![CDATA[<p>I have a project I&#8217;m working on where it&#8217;d be great if older versions of the software preserved information in the XML file format that it didn&#8217;t understand.  For example, imagine if Version 1 (V1) of the software had this for a file format:</p>
<p>&lt;data&gt;<br />&lt;value&gt;1&lt;/value&gt;<br />&lt;/data&gt;</p>
<p>Now imagine if V2 of the file added an attribute</p>
<p>&lt;data&gt;<br />&lt;value type=&#8221;number&#8221;&gt;1&lt;/value&gt;<br />&lt;/data&gt;</p>
<p>It&#8217;d be great if you opened that second file with the V1 software and then saved it again, it would preserve the stuff it didn&#8217;t understand.  Unfortunately that&#8217;s not how I usually write my value objects.  Usually I do something like:</p>
<pre>public class ValueObject{public var value:Number;public static function fromXML( xml:XML ) : ValueObject{var v:ValueObject = new ValueObject();v.value = xml.value;}

public function toXML(  ) : XML{var xml:XML = &lt;data&gt;;xml.value = value;return xml;}}</pre>
<p>As you can see, anything in the file that it doesn&#8217;t understand is lost.  But what if we followed a facade pattern for our data objects and did something more like this:</p>
<pre>public class ValueObject{protected var source:XML;

public static function fromXML( xml:XML ) : ValueObject{v.source = xml;}

public function toXML() : XML{return source;}

public function get value() : Number {return source.value;}public function set value(val:Number) : void {source.value = val;}}</pre>
<p>They both have the exact same API, but the second one will preserve XML attributes (or even nodes) that it doesn&#8217;t understand.</p>
<p>What about AMF based projects, especially when passing rich objects with a Red5 server?  I know there&#8217;s a pretty seamless mechanism in place if properties aren&#8217;t known, but how do you get those unknown properties back to the server?</p>
<p>What other solutions or best-practices do other people follow for solving this issue?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rogue-development.com/blog2/2007/11/xml-facade-instead-of-value-objects/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Website updates</title>
		<link>http://www.rogue-development.com/blog2/2007/05/website-updates/</link>
		<comments>http://www.rogue-development.com/blog2/2007/05/website-updates/#comments</comments>
		<pubDate>Thu, 03 May 2007 03:00:00 +0000</pubDate>
		<dc:creator>Marc</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://rogue-development.com/blog2/?p=6</guid>
		<description><![CDATA[Last night I spent some time updating my long-neglected personal websites. Rogue Development &#8211; The &#8220;dumping ground&#8221; for any interesting projects I work on.http://www.rogue-development.com/ This site is kind of neat. It consists solely of XML and XSLT documents. The XML is transformed by the XSLT on the client side (so it only works in semi-modern [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I spent some time updating my long-neglected personal websites.</p>
<p>Rogue Development &#8211; The &#8220;dumping ground&#8221; for any interesting projects I work on.<br /><a href="http://www.rogue-development.com/">http://www.rogue-development.com/</a></p>
<p>This site is kind of neat.  It consists solely of XML and XSLT documents.  The XML is transformed by the XSLT on the client side (so it only works in semi-modern browsers) and is formatted by a css stylesheet.  If I had cared about supporting more browsers, I could have done the XSLT conversion on the server side, but I don&#8217;t.  You can view-source on any page to see the XML, and you can check out these links for the XSLT and css pages:</p>
<p><a href="http://www.rogue-development.com/css/stylesheet.css">CSS</a><br /><a href="http://www.rogue-development.com/xslt/site.xsl">XSLT</a></p>
<p>You&#8217;re free to use them, modify them, etc on your site if you wish, just drop me a note letting me know.  I like to see what other people do.</p>
<p>Someday, I might write a Flex interface for reading the XML content.  Or even better, I wonder if it&#8217;s relatively easy to create a flex app to author the XSLT documents.</p>
<p>Marc-Hughes.com &#8211; My personal &#8220;fun&#8221; website.<br /><a href="http://www.marc-hughes.com/">http://www.marc-hughes.com/</a></p>
<p>The front page is flash, but the rest of the site is the same XSLT as rogue-development with a different css sheet to format it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rogue-development.com/blog2/2007/05/website-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

