<?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: XML Design Patterns - element vs. attribute</title>
	<atom:link href="http://amazing-development.com/archives/2005/02/14/xml-design-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://amazing-development.com/archives/2005/02/14/xml-design-patterns/</link>
	<description>ruby, java and the rest</description>
	<pubDate>Wed, 07 Jan 2009 00:33:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://amazing-development.com/archives/2005/02/14/xml-design-patterns/comment-page-1/#comment-65830</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Wed, 26 Sep 2007 17:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.spychalski.de/blog/archives/2005/02/14/xml-design-patterns/#comment-65830</guid>
		<description>One issue with attributes is mentioned in the developerworks article: If the information should not be normalized for white space, use elements.</description>
		<content:encoded><![CDATA[<p>One issue with attributes is mentioned in the developerworks article: If the information should not be normalized for white space, use elements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Software Pari</title>
		<link>http://amazing-development.com/archives/2005/02/14/xml-design-patterns/comment-page-1/#comment-151</link>
		<dc:creator>Software Pari</dc:creator>
		<pubDate>Mon, 11 Apr 2005 00:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.spychalski.de/blog/archives/2005/02/14/xml-design-patterns/#comment-151</guid>
		<description>Hi

Nice article.
I guess 2 things help us to answer this question (what I have gathered from various articles on net):

1. Is is the metadata or imp piece of information? - eg If we wish to give an ID to an entity to distinguish it from other entities of the same type, then it should be an attribute, else element. An element is that piece of info which user himself is aware of.

2. If there is some element which for sure would not have some attribute defining it further in the future, convert it to an attribute. But weight it against point 1.

Thanks &#38; regards
Software Pari

</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Nice article.<br />
I guess 2 things help us to answer this question (what I have gathered from various articles on net):</p>
<p>1. Is is the metadata or imp piece of information? - eg If we wish to give an ID to an entity to distinguish it from other entities of the same type, then it should be an attribute, else element. An element is that piece of info which user himself is aware of.</p>
<p>2. If there is some element which for sure would not have some attribute defining it further in the future, convert it to an attribute. But weight it against point 1.</p>
<p>Thanks &amp; regards<br />
Software Pari</p>
]]></content:encoded>
	</item>
</channel>
</rss>
