<?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>BlogDreams.it</title>
	<atom:link href="http://www.blogdreams.it/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogdreams.it</link>
	<description>... Il Magnus Pensiero ...</description>
	<lastBuildDate>Mon, 20 May 2013 21:57:40 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Storie di vita vissuta&#8230;</title>
		<link>http://www.blogdreams.it/2013/05/storie-di-vita-vissuta/umorismo-2</link>
		<comments>http://www.blogdreams.it/2013/05/storie-di-vita-vissuta/umorismo-2#comments</comments>
		<pubDate>Mon, 20 May 2013 21:57:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Umorismo]]></category>
		<category><![CDATA[Vignette]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[lavare]]></category>
		<category><![CDATA[matrimonio]]></category>
		<category><![CDATA[natura]]></category>
		<category><![CDATA[umana]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1608</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><img align="middle" alt="" height="652" src="http://www.blogdreams.it/wp-content/uploads/image/CMQ99_3PQ43.png" width="650" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/05/storie-di-vita-vissuta/umorismo-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realizzare un Parser XML con ANDROID</title>
		<link>http://www.blogdreams.it/2013/01/realizzare-un-parser-xml-con-android/articoli-java</link>
		<comments>http://www.blogdreams.it/2013/01/realizzare-un-parser-xml-con-android/articoli-java#comments</comments>
		<pubDate>Sun, 20 Jan 2013 19:05:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Andoid]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1565</guid>
		<description><![CDATA[Ciao, vi riporto questo utilissimo tutorial ANDROID relativo al parsing XML con android. E&#39; utilissimo anche nel caso in cui vogliate realizzare un vostro RSS reader personalizzato. Fonte:&#160;http://www.anddev.it/index.php?topic=180.0 Salve a tutti, vorrei mostrarvi come &#232; possibile fare il parsing di un documento XML tramite il Document Object Model. A differenza del&#160;parsing tramite SAX, che legge [...]]]></description>
				<content:encoded><![CDATA[<p><img align="left" alt="" height="150" src="http://www.blogdreams.it/wp-content/uploads/image/android.jpg" width="200" />Ciao,<br />
	vi riporto questo utilissimo tutorial ANDROID relativo al parsing XML con android. E&#39; utilissimo anche nel caso in cui vogliate realizzare un vostro RSS reader personalizzato.</p>
<hr />
<p>Fonte:&nbsp;<a href="http://www.anddev.it/index.php?topic=180.0">http://www.anddev.it/index.php?topic=180.0</a></p>
<p>	Salve a tutti,<br />
	vorrei mostrarvi come &egrave; possibile fare il parsing di un documento XML tramite il Document Object Model.</p>
<p>	A differenza del&nbsp;<a href="http://www.anddev.it/index.php/topic,101.0.html" target="_blank">parsing tramite SAX</a>, che legge il documento e fa scattare degli eventi (metodi dell&#39;handler) ad ogni tag incontrato, il parsing tramite DOM legge la struttura ad albero di un XML. A discrezione dell&#39;utente (programmatore) la struttura letta potr&agrave; essere direttamente interrogata (nel codice si capisce meglio di cosa si tratta).</p>
<p>	Per documenti XML relativamente semplici, questo tipo di parsing risulta sicuramente&nbsp;pi&ugrave; immediato e semplice da implementare.&nbsp;<br />
	Tuttavia, per strutture con albero xml troppo profondo, questo metodo potrebbe risultare scomodo, e sarebbe quindi meglio optare per il sax parsing.</p>
<p>	Vorrei osservare, che queste operazioni (DOM e SAX parsing) sono inerenti a Java pi&ugrave; che ad android, ma visto che molte persone si avvicinano a questo&nbsp;fantastico&nbsp;linguaggio grazie ad android, ritengo giusto condividere questo tipo di informazioni su questa board.</p>
<p>	Vediamo il documento che vogliamo analizzare:<br />
	&nbsp;</p>
<div class="codeheader" style="color: rgb(102, 102, 102); font-size: x-small; font-weight: bold; padding: 0px 0.3em; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);">Codice (XML):&nbsp;<a class="codeoperation" href="" style="font-weight: normal; color: rgb(51, 68, 102); text-decoration: initial;">[Seleziona]</a></div>
<p><code class="bbc_code" style="display: block; font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: small; border: 1px solid rgb(153, 153, 153); line-height: 1.5em; padding: 3px 1em; overflow: auto; white-space: nowrap; max-height: 32em;"><span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;?xml</span>&nbsp;<span style="color: rgb(127, 0, 127);">version</span>=<span style="color: rgb(42, 0, 255);">&quot;1.0&quot;</span>&nbsp;<span style="color: rgb(127, 0, 127);">encoding</span>=<span style="color: rgb(42, 0, 255);">&quot;utf-8&quot;</span><span style="color: rgb(63, 127, 127); font-weight: bold;">?&gt;</span></span><br />
	<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;messages&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;note</span>&nbsp;<span style="color: rgb(127, 0, 127);">id</span>=<span style="color: rgb(42, 0, 255);">&quot;p501&quot;</span><span style="color: rgb(63, 127, 127); font-weight: bold;">&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;to&gt;</span></span>Carlo<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/to&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;from&gt;</span></span>Luca<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/from&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;heading&gt;</span></span>Promemoria<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/heading&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;body&gt;</span></span>Ricordati gli appunti!<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/body&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/note&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;note</span>&nbsp;<span style="color: rgb(127, 0, 127);">id</span>=<span style="color: rgb(42, 0, 255);">&quot;p502&quot;</span><span style="color: rgb(63, 127, 127); font-weight: bold;">&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;to&gt;</span></span>Luca<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/to&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;from&gt;</span></span>Carlo<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/from&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;heading&gt;</span></span>Re: Promemoria<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/heading&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;body&gt;</span></span>Ok, mi ricorder&ograve;!<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/body&gt;</span></span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/note&gt;</span></span><br />
	<span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/messages&gt;</span></span></code><br style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);" /><br />
	Creiamo una classe che rappresenta una nota:<br />
	&nbsp;</p>
<div class="codeheader" style="color: rgb(102, 102, 102); font-size: x-small; font-weight: bold; padding: 0px 0.3em; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);">Codice (Java):&nbsp;<a class="codeoperation" href="" style="font-weight: normal; color: rgb(51, 68, 102); text-decoration: initial;">[Seleziona]</a></div>
<p><code class="bbc_code" style="display: block; font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: small; border: 1px solid rgb(153, 153, 153); line-height: 1.5em; padding: 3px 1em; overflow: auto; white-space: nowrap; max-height: 32em;"><span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">class</span>&nbsp;MyNote&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">private</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;body;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">private</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;heading;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">private</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;from;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">private</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;to;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">private</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;id;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;getId()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;id;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;setId(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;id)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">this</span>.id&nbsp;=&nbsp;id;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;getFrom()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;from;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;setFrom(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;from)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">this</span>.from&nbsp;=&nbsp;from;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;getTo()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;to;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;setTo(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;to)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">this</span>.to&nbsp;=&nbsp;to;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;getHeading()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;heading;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;setHeading(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;heading)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">this</span>.heading&nbsp;=&nbsp;heading;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;getBody()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;body;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;setBody(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;body)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">this</span>.body&nbsp;=&nbsp;body;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp; &nbsp; &nbsp; @Override<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;toString()&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;<span style="color: rgb(42, 0, 255);">&quot;MyNote [id=&quot;</span>&nbsp;+&nbsp;id &nbsp;+&nbsp;<span style="color: rgb(42, 0, 255);">&quot;, from=&quot;</span>&nbsp;+&nbsp;from&nbsp;+&nbsp;<span style="color: rgb(42, 0, 255);">&quot;, to=&quot;</span>&nbsp;+&nbsp;to&nbsp;+<span style="color: rgb(42, 0, 255);">&quot;, heading=&quot;</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;+&nbsp;heading&nbsp;+&nbsp;<span style="color: rgb(42, 0, 255);">&quot;,body=&quot;</span>&nbsp;+&nbsp;body+&nbsp;<span style="color: rgb(42, 0, 255);">&quot;]&quot;</span>;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	}</code><br style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);" /><br />
	Creiamo una classe che gestisce il parsing: (potremmo utilizzare un metodo, ma in questo modo rendiamo pi&ugrave; pulito e riutilizzabile il tutto)<br />
	Se eliminate i metodi di debug e le chiamate a questi metodi, vi accorgerete della semplicit&agrave; di questo tipo di parsing(nel caso vi sembrasse troppo lungo&nbsp;<img alt=":P" src="http://www.anddev.it/Smileys/android/tongue.png" title="Linguaccia" />).<br style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);" /><br />
	&nbsp;</p>
<div class="codeheader" style="color: rgb(102, 102, 102); font-size: x-small; font-weight: bold; padding: 0px 0.3em; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);">Codice (Java):&nbsp;<a class="codeoperation" href="" style="font-weight: normal; color: rgb(51, 68, 102); text-decoration: initial;">[Seleziona]</a></div>
<p><code class="bbc_code" style="display: block; font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: small; border: 1px solid rgb(153, 153, 153); line-height: 1.5em; padding: 3px 1em; overflow: auto; white-space: nowrap; max-height: 32em;"><span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">class</span>&nbsp;MyParser&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">static</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;vDebug(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;debugString){&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//metodi di convenienza</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.v(<span style="color: rgb(42, 0, 255);">&quot;DomParsing&quot;</span>, debugString+<span style="color: rgb(42, 0, 255);">&quot;<span style="color: rgb(0, 0, 153); font-weight: bold;">\n</span>&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">static</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;eDebug(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;debugString){<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Log.e(<span style="color: rgb(42, 0, 255);">&quot;DomParsing&quot;</span>, debugString+<span style="color: rgb(42, 0, 255);">&quot;<span style="color: rgb(0, 0, 153); font-weight: bold;">\n</span>&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; ArrayList&lt;MyNote&gt;&nbsp;parsedData=<span style="color: rgb(127, 0, 85); font-weight: bold;">new</span>&nbsp;ArrayList&lt;MyNote&gt;();&nbsp;<span style="color: rgb(63, 127, 95);">//struttura dati che immagazziner&agrave; i dati letti</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;ArrayList&lt;MyNote&gt;&nbsp;getParsedData()&nbsp;{&nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//metodo di accesso alla struttura dati</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">return</span>&nbsp;parsedData;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}</p>
<p>	&nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;parseXml(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;xmlUrl){<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocument+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Document</span></a>&nbsp;doc;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">try</span>&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doc=DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(<span style="color: rgb(127, 0, 85); font-weight: bold;">new</span>&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aurl+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">URL</span></a>(xmlUrl).openStream());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//Costruiamo il nostro documento a partire dallo stream dati fornito dall&#39;URL</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Element</span></a>&nbsp;root=doc.getDocumentElement();<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//Elemento(nodo) radice del documento</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;Root element :&quot;</span>&nbsp;+&nbsp;root.getNodeName());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//NodeList notes=root.getElementsByTagName(&quot;note&quot;); //potremmo direttamente prendere gli elementi note</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NodeList notes=root.getChildNodes();&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//ma prediamo tutti i &quot;figli&quot; diretti di root. Utile se non avessimo solo &quot;note&quot; come figli di root</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">for</span>(<span style="color: rgb(127, 0, 85); font-weight: bold;">int</span>&nbsp;i=0;i&lt;notes.getLength();i++){<span style="color: rgb(63, 127, 95);">//per ogni</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Node c=&nbsp;notes.item(i);<span style="color: rgb(63, 127, 95);">//nodo</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(c.getNodeType()==Node.ELEMENT_NODE){<span style="color: rgb(63, 127, 95);">//controlliamo se questo &egrave; un nodo elemento (un tag)</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//se avessimo usato root.getElementsByTagName(&quot;note&quot;) questo controllo</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//non sarebbe stato necessario</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyNote newNote=<span style="color: rgb(127, 0, 85); font-weight: bold;">new</span>&nbsp;MyNote();&nbsp;<span style="color: rgb(63, 127, 95);">//costruiamo un oggetto MyNote dove andremo a salvare i dati</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Element</span></a>&nbsp;note=(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Element</span></a>)c;&nbsp;<span style="color: rgb(63, 127, 95);">//cast da nodo a Elemento</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//non controlliamo if(note.getNodeName().equals(&quot;note&quot;)) &nbsp;in quanto sappiamo di avere solo &quot;note&quot; come childs</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;id=note.getAttribute(<span style="color: rgb(42, 0, 255);">&quot;id&quot;</span>);&nbsp;<span style="color: rgb(63, 127, 95);">// lettura attributo</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;_Attributo note id:&quot;</span>+id);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newNote.setId(id);&nbsp;<span style="color: rgb(63, 127, 95);">// settiamo l&#39;id del nostro oggetto MyNote</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NodeList noteDetails=c.getChildNodes();&nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//per ogni nota abbiamo i vari dettagli&nbsp;</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">for</span>(<span style="color: rgb(127, 0, 85); font-weight: bold;">int</span>&nbsp;j=0;j&lt;noteDetails.getLength();j++){<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Node c1=noteDetails.item(j);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(c1.getNodeType()==Node.ELEMENT_NODE){&nbsp;<span style="color: rgb(63, 127, 95);">//anche in questo caso controlliamo se si tratta di tag</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Element</span></a>&nbsp;detail=(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aelement+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">Element</span></a>)c1;&nbsp;<span style="color: rgb(63, 127, 95);">//cast</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;nodeName=detail.getNodeName();&nbsp;<span style="color: rgb(63, 127, 95);">//leggo il nome del tag</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;nodeValue=detail.getFirstChild().getNodeValue();<span style="color: rgb(63, 127, 95);">//leggo il testo in esso contenuto</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;______Dettaglio:&quot;</span>+nodeName);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;______Contenuto Dettaglio:&quot;</span>+nodeValue);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//a dipendenza del nome del nodo (del dettaglio) settiamo il relativo valore nell&#39;oggetto</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(nodeName.equals(<span style="color: rgb(42, 0, 255);">&quot;from&quot;</span>))<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newNote.setFrom(nodeValue);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(nodeName.equals(<span style="color: rgb(42, 0, 255);">&quot;to&quot;</span>))<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newNote.setTo(nodeValue);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(nodeName.equals(<span style="color: rgb(42, 0, 255);">&quot;heading&quot;</span>))<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newNote.setHeading(nodeValue);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">if</span>(nodeName.equals(<span style="color: rgb(42, 0, 255);">&quot;body&quot;</span>))<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newNote.setBody(nodeValue);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vDebug(<span style="color: rgb(42, 0, 255);">&quot;&quot;</span>);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parsedData.add(newNote);&nbsp;<span style="color: rgb(63, 127, 95);">//aggiungiamo il nostro oggetto all&#39;arraylist</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//gestione eccezioni</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">catch</span>&nbsp;(SAXException e)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eDebug(e.toString());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">catch</span>&nbsp;(<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aioexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">IOException</span></a>&nbsp;e)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eDebug(e.toString());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">catch</span>&nbsp;(ParserConfigurationException e)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eDebug(e.toString());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">catch</span>&nbsp;(FactoryConfigurationError e)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eDebug(e.toString());<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}<br />
	&nbsp; &nbsp;&nbsp;<br />
	}</code><br style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);" /><br />
	Aggiungiamo questa permission al manifest:<br />
	&nbsp;</p>
<div class="codeheader" style="color: rgb(102, 102, 102); font-size: x-small; font-weight: bold; padding: 0px 0.3em; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);">Codice (XML):&nbsp;<a class="codeoperation" href="" style="font-weight: normal; color: rgb(51, 68, 102); text-decoration: initial;">[Seleziona]</a></div>
<p><code class="bbc_code" style="display: block; font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: small; border: 1px solid rgb(153, 153, 153); line-height: 1.5em; padding: 3px 1em; overflow: auto; white-space: nowrap; max-height: 32em;"><span style="color: rgb(26, 26, 26);"><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;uses-permission</span>&nbsp;<span style="color: rgb(127, 0, 127);">android:name</span>=<span style="color: rgb(42, 0, 255);">&quot;android.permission.INTERNET&quot;</span><span style="color: rgb(63, 127, 127); font-weight: bold;">&gt;</span><span style="color: rgb(63, 127, 127); font-weight: bold;">&lt;/uses-permission&gt;</span></span></code><br />
	Usiamo ci&ograve; che abbiamo creato:</p>
<div class="codeheader" style="color: rgb(102, 102, 102); font-size: x-small; font-weight: bold; padding: 0px 0.3em; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 17.46875px; background-color: rgb(231, 234, 239);">Codice (Java):&nbsp;<a class="codeoperation" href="" style="font-weight: normal; color: rgb(51, 68, 102); text-decoration: initial;">[Seleziona]</a></div>
<p><code class="bbc_code" style="display: block; font-family: 'dejavu sans mono', monaco, 'lucida console', 'courier new', monospace; font-size: small; border: 1px solid rgb(153, 153, 153); line-height: 1.5em; padding: 3px 1em; overflow: auto; white-space: nowrap; max-height: 32em;"><span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">class</span>&nbsp;DomParsing&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">extends</span>&nbsp;Activity&nbsp;{<br />
	&nbsp; &nbsp;<br />
	&nbsp; &nbsp; @Override<br />
	&nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">public</span>&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">void</span>&nbsp;onCreate(Bundle savedInstanceState)&nbsp;{<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(127, 0, 85); font-weight: bold;">super</span>.onCreate(savedInstanceState);<br />
	&nbsp; &nbsp; &nbsp; &nbsp; setContentView(R.layout.main);<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky" style="color: rgb(51, 68, 102); text-decoration: initial;"><span style="color: rgb(0, 0, 0);">String</span></a>&nbsp;xmlUrl=<span style="color: rgb(42, 0, 255);">&quot;http://www.xxxx.xx/myfiles/messages.xml&quot;</span>;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; MyParser parser=<span style="color: rgb(127, 0, 85); font-weight: bold;">new</span>&nbsp;MyParser();&nbsp;<span style="color: rgb(63, 127, 95);">//otteniamo un istanza del nostro parser&nbsp;</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp; parser.parseXml(xmlUrl);<span style="color: rgb(63, 127, 95);">//usiamo il parser</span><br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;((TextView)findViewById(R.id.result)).setText(parser.getParsedData().toString());&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="color: rgb(63, 127, 95);">//per semplicit&agrave; stampiamo il toString (che richiamer&agrave; i toString di MyNote) dell&#39;arraylist risultato dal parsing</span><br />
	&nbsp; &nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />
	}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/01/realizzare-un-parser-xml-con-android/articoli-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lo Yeti a Voyager</title>
		<link>http://www.blogdreams.it/2013/01/lo-yeti-a-voyager/umorismo-2</link>
		<comments>http://www.blogdreams.it/2013/01/lo-yeti-a-voyager/umorismo-2#comments</comments>
		<pubDate>Mon, 07 Jan 2013 21:52:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Considerazioni]]></category>
		<category><![CDATA[Umorismo]]></category>
		<category><![CDATA[servizio]]></category>
		<category><![CDATA[voyager]]></category>
		<category><![CDATA[yeti]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1562</guid>
		<description><![CDATA[Voyager: la capacità di produrre un servizio sullo Yeti di 60 min salvo poi smentirlo in 30 sec chiarendoti che stavano parlando di un lupo &#8212; Luca Montemagno (@magnusPensiero) Janvier 7, 2013]]></description>
				<content:encoded><![CDATA[<blockquote class="twitter-tweet" width="500" lang="fr"><p>Voyager: la capacità di produrre un servizio sullo Yeti di 60 min salvo poi smentirlo in 30 sec chiarendoti che stavano parlando di un lupo</p>
<p>&mdash; Luca Montemagno (@magnusPensiero) <a href="https://twitter.com/magnusPensiero/status/288398155521855491" data-datetime="2013-01-07T21:34:13+00:00">Janvier 7, 2013</a></p></blockquote>
<p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/01/lo-yeti-a-voyager/umorismo-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fallita la Richard-Ginori</title>
		<link>http://www.blogdreams.it/2013/01/fallita-la-richard-ginori/umorismo-2</link>
		<comments>http://www.blogdreams.it/2013/01/fallita-la-richard-ginori/umorismo-2#comments</comments>
		<pubDate>Mon, 07 Jan 2013 21:50:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Considerazioni]]></category>
		<category><![CDATA[Umorismo]]></category>
		<category><![CDATA[fallita]]></category>
		<category><![CDATA[ginori]]></category>
		<category><![CDATA[richard]]></category>
		<category><![CDATA[umorismo]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1559</guid>
		<description><![CDATA[Fallita la Richard-Ginori. C&#8217;è pessimismo.In effetti in questo caso è controproducente immaginare la tazza mezza piena. Ammettiamolo. &#8212; Luca Montemagno (@magnusPensiero) Janvier 7, 2013]]></description>
				<content:encoded><![CDATA[<blockquote class="twitter-tweet" width="500" lang="fr"><p>Fallita la Richard-Ginori. C&#8217;è pessimismo.In effetti in questo caso è controproducente immaginare la tazza mezza piena. Ammettiamolo.</p>
<p>&mdash; Luca Montemagno (@magnusPensiero) <a href="https://twitter.com/magnusPensiero/status/288399492485615618" data-datetime="2013-01-07T21:39:31+00:00">Janvier 7, 2013</a></p></blockquote>
<p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/01/fallita-la-richard-ginori/umorismo-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concatenare due files ( anche mp3 ) su ANDROID</title>
		<link>http://www.blogdreams.it/2013/01/concatenare-due-files-anche-mp3-su-android/articoli-java</link>
		<comments>http://www.blogdreams.it/2013/01/concatenare-due-files-anche-mp3-su-android/articoli-java#comments</comments>
		<pubDate>Sat, 05 Jan 2013 17:53:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Andoid]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1546</guid>
		<description><![CDATA[A seguire una utile funzione in grado di concatenare due files ( presenti preferibilmente nella vostra /mnt/sdcard ). La concatenazione ha effetto anche se utilizzata con files MP3. &#160; &#160; public void concatFiles&#40;String file1,String file2,String out&#41;&#123; FileInputStream fistream1; try &#123; fistream1 = new FileInputStream&#40;file1&#41;; FileInputStream fistream2 = new FileInputStream&#40;file2&#41;;//second source file SequenceInputStream sistream = new [...]]]></description>
				<content:encoded><![CDATA[<p><img align="left" alt="" height="112" src="http://www.blogdreams.it/wp-content/uploads/image/android.jpg" width="150" />A seguire una utile funzione in grado di concatenare due files ( presenti preferibilmente nella vostra /mnt/sdcard ).</p>
<p>	La concatenazione ha effetto anche se utilizzata con files MP3.<br />
	&nbsp;</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> concatFiles<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> file1,<span style="color: #003399;">String</span> file2,<span style="color: #003399;">String</span> out<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    	<span style="color: #003399;">FileInputStream</span> fistream1<span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
			fistream1 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span>file1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #003399;">FileInputStream</span> fistream2 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span>file2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//second source file</span>
	        <span style="color: #003399;">SequenceInputStream</span> sistream <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">SequenceInputStream</span><span style="color: #009900;">&#40;</span>fistream1, fistream2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	        <span style="color: #003399;">FileOutputStream</span> fostream <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileOutputStream</span><span style="color: #009900;">&#40;</span>out<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//destinationfile</span>
&nbsp;
	        <span style="color: #000066; font-weight: bold;">int</span> temp<span style="color: #339933;">;</span>
&nbsp;
	        <span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> temp <span style="color: #339933;">=</span> sistream.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
	        <span style="color: #009900;">&#123;</span>
	            <span style="color: #666666; font-style: italic;">// System.out.print( (char) temp ); // to print at DOS prompt</span>
	            fostream.<span style="color: #006633;">write</span><span style="color: #009900;">&#40;</span>temp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">// to write to file</span>
	        <span style="color: #009900;">&#125;</span>
	        fostream.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        sistream.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        fistream1.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	        fistream2.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Poich&egrave; &egrave; stato utilizzato solo JAVA la funzione &egrave; utilizzabile anche in software non ANDROID ( ma semplicemente JAVA ).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/01/concatenare-due-files-anche-mp3-su-android/articoli-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copiare i propri assets ANDROID nella sdcard</title>
		<link>http://www.blogdreams.it/2013/01/copiare-i-propri-assets-android-nella-sdcard/articoli-java</link>
		<comments>http://www.blogdreams.it/2013/01/copiare-i-propri-assets-android-nella-sdcard/articoli-java#comments</comments>
		<pubDate>Sat, 05 Jan 2013 17:45:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Andoid]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1543</guid>
		<description><![CDATA[A seguire vi allego una utilissima funzione in grado di spostare gli assets della vostra applicazione ANDROID verso la cartella relativa alla card sd ( anche se non avete sul vostro dispositivo una SD ricordate che la cartella /mnt/sdcard &#8211; o simile &#8211; sar&#224; presente comunque ). Questa operazione &#232; essenziale nel caso in cui [...]]]></description>
				<content:encoded><![CDATA[<p><img align="left" alt="" height="112" src="http://www.blogdreams.it/wp-content/uploads/image/android.jpg" width="150" /><span style="font-family:verdana,geneva,sans-serif;">A seguire vi allego una utilissima funzione in grado di<span style="color:#f00;"> spostare gli assets della vostra applicazione ANDROID verso la cartella relativa alla card sd</span> ( anche se non avete sul vostro dispositivo una SD ricordate che la cartella /mnt/sdcard &#8211; o simile &#8211; sar&agrave; presente comunque ).</span></p>
<p><span style="font-family:verdana,geneva,sans-serif;">Questa operazione &egrave; essenziale nel caso in cui voleste modificare / rendere disponibili all&#39;utilizzatore della vostra app i file sonori / grafici della stessa.</span></p>
<p><span style="font-family:verdana,geneva,sans-serif;">La stessa funzione potrebbe essere utilizzata per creare un dump del proprio db locale, leggibile poi mediante un semplice accesso alla /mnt/sdcard.</p>
<p>	</span></p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> copyAssets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">File</span> folder <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Environment</span>.<span style="color: #006633;">getExternalStorageDirectory</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;/</span>DIRTEMP<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">boolean</span> success <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>folder.<span style="color: #006633;">exists</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		    success <span style="color: #339933;">=</span> folder.<span style="color: #006633;">mkdir</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>success<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			AssetManager assetManager <span style="color: #339933;">=</span> getAssets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		    <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> files <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		    <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
		        files <span style="color: #339933;">=</span> assetManager.<span style="color: #006633;">list</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		        <span style="color: #003399;">String</span> err<span style="color: #339933;">=&amp;</span>quot<span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;;</span>
		    <span style="color: #009900;">&#125;</span>
		    <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> filename <span style="color: #339933;">:</span> files<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		        <span style="color: #003399;">InputStream</span> in <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		        <span style="color: #003399;">OutputStream</span> out <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
		          in <span style="color: #339933;">=</span> assetManager.<span style="color: #006633;">open</span><span style="color: #009900;">&#40;</span>filename<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          out <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileOutputStream</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Environment</span>.<span style="color: #006633;">getExternalStorageDirectory</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;/DIRTEMP/&quot;</span> <span style="color: #339933;">+</span> filename<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          copyFile<span style="color: #009900;">&#40;</span>in, out<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          in.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          in <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		          out.<span style="color: #006633;">flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		          out <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		        <span style="color: #009900;">&#125;</span>       
		    <span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
		    <span style="color: #666666; font-style: italic;">// Do something else on failure </span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><span style="font-family:verdana,geneva,sans-serif;">Fatene buon uso!</span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><br />
	</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2013/01/copiare-i-propri-assets-android-nella-sdcard/articoli-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>L’olio d’oliva può salvare Pompei</title>
		<link>http://www.blogdreams.it/2012/12/lolio-doliva-puo-salvare-pompei/scienza</link>
		<comments>http://www.blogdreams.it/2012/12/lolio-doliva-puo-salvare-pompei/scienza#comments</comments>
		<pubDate>Fri, 07 Dec 2012 10:23:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scienza]]></category>
		<category><![CDATA[olio]]></category>
		<category><![CDATA[olive]]></category>
		<category><![CDATA[pompei]]></category>
		<category><![CDATA[salvare]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1534</guid>
		<description><![CDATA[Meno di una settimana fa, negli scavi di Pompei&#160;crollava l&#8217;ennesimo muro, che si aggiungeva cos&#236; alla lista di danni gi&#224; subiti dal complesso archeologico campano negli ultimi anni. Principali responsabili, secondo gli amministratori del sito, la pioggia e il vento: come se la mancanza di manutenzione fosse ormai data per acquisita. Senza interventi di messa [...]]]></description>
				<content:encoded><![CDATA[<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;"><img align="left" alt="" height="203" src="http://www.blogdreams.it/wp-content/uploads/image/degustazione-olio-oliva.jpg" width="200" />Meno di una settimana fa, negli scavi di Pompei&nbsp;<a href="http://www.agi.it/cronaca/notizie/201211301801-cro-rt10187-pompei_crollo_muro_in_domus_area_chiusa_al_pubblico" style="font-weight: bold; text-decoration: initial; color: rgb(223, 28, 0);">crollava l&rsquo;ennesimo muro</a>, che si aggiungeva cos&igrave; alla lista di danni gi&agrave; subiti dal complesso archeologico campano negli ultimi anni. Principali responsabili, secondo gli amministratori del sito, la pioggia e il vento: come se la mancanza di manutenzione fosse ormai data per acquisita. Senza interventi di messa in sicurezza non si pu&ograve; sperare di ottenere risultati di un qualche rilievo: la notizia positiva &egrave; che almeno la tecnologia sembra andare incontro alla protezione del patrimonio culturale.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Un gruppo di ricercatori anglo-americani ha infatti inventato un sottile materiale impermeabile e trasparente, dotato di propriet&agrave; che permetterebbero la protezione di edifici storici in pietra calcarea. Il cellofan.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">No, seriamente.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Vicki Grassian, chimica dell&rsquo;Universit&agrave; dell&rsquo;Iowa, Stati Uniti, ha pubblicato insieme ad altri ricercatori dell&rsquo;Universit&agrave; di Cardiff, Regno Unito, uno&nbsp;<a href="http://www.nature.com/srep/2012/121129/srep00880/full/srep00880.html" style="font-weight: bold; text-decoration: initial; color: rgb(223, 28, 0);">studio su<i>Scientific Reports</i></a>, una rivista che fa capo alla pi&ugrave; nota&nbsp;<i>Nature</i>. Nello studio, il gruppo descrive un nuovo metodo per minimizzare le reazioni chimiche che provocano il deterioramento degli edifici. Il rivestimento &egrave; fatto di un miscuglio di acidi grassi derivati da un condimento quotidiano della dieta mediterranea, l&rsquo;olio d&rsquo;oliva, e di una serie di sostanze fluorurate, che aumentano la resistenza dei calcari all&rsquo;inquinamento.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Grassian studia da anni le reazioni dei gas atmosferici con minerali come i calcari. I suoi studi precedenti hanno dimostrato che il biossido di zolfo pu&ograve; facilmente degradare il calcare, e che questa degradazione era favorita dalla presenza di umidit&agrave;.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">&ldquo;Questa ricerca dimostra che statue ed edifici calcarei possono essere protetti dagli effetti nocivi della corrosione atmosferica, come quelli dovuti a molecole inquinanti e al particolato presente nell&rsquo;aria, attraverso l&rsquo;applicazione di un sottilissimo strato idrofobico&rdquo;, spiega Grassian. &ldquo;In particolare, la degradazione del calcare provocata da reazioni col biossido di zolfo e con particelle composte da solfati pu&ograve; essere ridotta di molto applicando questa &lsquo;vernice&rsquo; &ldquo;.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">I ricercatori hanno scelto la&nbsp;<a href="http://en.wikipedia.org/wiki/York_Minster" style="font-weight: bold; text-decoration: initial; color: rgb(223, 28, 0);">cattedrale di York</a>, in Inghilterra, come edificio su cui effettuare lo studio. Si tratta della pi&ugrave; grande cattedrale gotica del Nordeuropa: la sua costruzione fu cominciata attorno al 1260 e ultimata due secoli dopo, nel 1472. Grassian afferma che si tratta di una struttura perfetta da studiare, poich&eacute; la sua superficie calcarea &egrave; stata esposta per secoli a piogge acide, biossido di zolfo e altri inquinanti.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Tuttavia, molte altre strutture storiche, purch&eacute; di pietra calcarea, potrebbero trarre beneficio dall&rsquo;invenzione: il tufo &egrave; appunto un calcare, e a Pompei abbonda. La chimica statunitense precisa che, in passato, sono stati fatti altri tentativi volti alla protezione di siti d&rsquo;interesse archeologico, ma le vernici sperimentate finora influivano negativamente sulla microstruttura della pietra, e impedivano agli edifici di &lsquo;respirare&rsquo;, creando muffe e favorendo la formazione di sale.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Quanto a Pompei e ad altri siti italiani in situazioni simili, bisogner&agrave; vedere, una volta che il materiale ideato dal gruppo anglo-americano sar&agrave; stato ulteriormente sperimentato e, in caso positivo, commercializzato, se il Ministero per i beni culturali avr&agrave; fondi ed expertise a sufficienza per una sua applicazione ad ampio raggio. C&rsquo;&egrave; solo da augurarsi che, nel frattempo, non si resti in attesa passiva del prossimo crollo.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Fonte:&nbsp;http://oggiscienza.wordpress.com/2012/12/05/lolio-doliva-puo-salvare-pompei/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2012/12/lolio-doliva-puo-salvare-pompei/scienza/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LIBRI – Capire davvero la relatività</title>
		<link>http://www.blogdreams.it/2012/11/libri-capire-davvero-la-relativita/scienza</link>
		<comments>http://www.blogdreams.it/2012/11/libri-capire-davvero-la-relativita/scienza#comments</comments>
		<pubDate>Tue, 13 Nov 2012 11:02:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scienza]]></category>
		<category><![CDATA[capire]]></category>
		<category><![CDATA[einstein]]></category>
		<category><![CDATA[fisica]]></category>
		<category><![CDATA[guida]]></category>
		<category><![CDATA[relatività]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1529</guid>
		<description><![CDATA[LIBRI &#8211; Spiegare la teoria della relativit&#224; in termini pi&#249; o meno comprensibili &#232; da sempre una sfida per i divulgatori, alcuni di essi anche d&#8217;eccezione: dallo stesso Albert Einstein (autore di numerosi scritti sull&#8217;argomento, fra cui&#160;Relativit&#224;: esposizione divulgativa) al suo amico Bertrand Russell (autore di&#160;L&#8217;ABC della relativit&#224;). La fama di Albert Einstein, i celebri [...]]]></description>
				<content:encoded><![CDATA[<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;"><img align="left" alt="" height="298" src="http://www.blogdreams.it/wp-content/uploads/image/capire-davvero-la-relativitc3a0.jpeg" style="padding-right:20px" width="194" />LIBRI &ndash; Spiegare la teoria della relativit&agrave; in termini pi&ugrave; o meno comprensibili &egrave; da sempre una sfida per i divulgatori, alcuni di essi anche d&rsquo;eccezione: dallo stesso Albert Einstein (autore di numerosi scritti sull&rsquo;argomento, fra cui&nbsp;<i>Relativit&agrave;: esposizione divulgativa</i>) al suo amico Bertrand Russell (autore di&nbsp;<i>L&rsquo;ABC della relativit&agrave;</i>). La fama di Albert Einstein, i celebri paradossi &ndash; come quello dello specchio, o quello dei gemelli &ndash; e la costante sfida al senso comune e a ci&ograve; che sembra ovvio su concetti apparentemente familiari come spazio e tempo hanno reso la teoria della relativit&agrave; un argomento in grado di affascinare generazioni di lettori. Sono state numerosissime le pubblicazioni, specialistiche e non, sull&rsquo;argomento e questo lo ricorda anche il fisico teorico Daniel F. Styer all&rsquo;inizio del suo&nbsp;<i>Capire davvero la relativit&agrave; &ndash; Alla scoperta della teoria di Einstein</i>, edito da Zanichelli. Che cos&rsquo;&egrave;, allora, che ha spinto l&rsquo;autore, professore di fisica all&rsquo;Oberlin College in Ohio, a scrivere un ennesimo libro su questo affascinante argomento su cui tanto si &egrave; detto?Come in una sorta di libro-game della fisica, ogni capitolo propone alcune brevi quesiti e problemini, facilmente risolvibili con le informazioni introdotte nel capitolo. Alla fine del libro ci sono anche le soluzioni ai quesiti con qualche ulteriore spiegazione utile. Il testo infatti si snoda introducendo passo passo i concetti scientifici necessari, facendo anche ricorso a numerose illustrazioni che facilitano il lettore-giocatore-studente ad addentrarsi nelle bizzarrie e nei paradossi della relativit&agrave; einsteiniana. Ogni capitolo &egrave; anche dotato di brevi box organizzati a domanda e risposta, spesso focalizzati sugli aspetti pi&ugrave; paradossali della teoria.&nbsp;La lettura, nonostante i molteplici spunti, non &egrave; faticosa e scorre piacevole, anche grazie all&rsquo;efficace e brillante stile di Styer.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Questa struttura si mantiene pressoch&eacute; inalterata per i primi sedici capitoli (quindici pi&ugrave; uno interamente dedicato a quesiti e piccoli test per verificare la propria preparazione), i quali sono dedicati alla teoria della relativit&agrave; ristretta. I capitoli conclusivi (dal 17 al 20) sono dedicati alla teoria della relativit&agrave; generale e in questa parte la struttura dei capitoli cambia leggermente, infatti non troviamo pi&ugrave; quesiti, box e test. In ogni caso Styer &egrave; particolarmente attento anche alle prospettive della ricerca, fa il punto sul panorama attuale e dedica anche una chiara postfazione alla questione dei neutrini ultraveloci.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Di fatto, la missione di<em>&nbsp;Capire davvero la relativit&agrave;</em>&nbsp;&egrave; una ideale quadratura del cerchio in grado di superare la dicotomia fra libro specialistico e libro descrittivo-divulgativo. Un intento che Styer mette nero su bianco sin dall&rsquo;introduzione e che riesce a sviluppare in modo particolarmente brillante, soprattutto nei capitoli dedicati alla relativit&agrave; ristretta.</p>
<p style="line-height: 1.5em; margin: 0px 0px 15px; padding: 0px; color: rgb(42, 42, 42); font-family: calluna-sans-1, calluna-sans-2, Verdana, Tahoma, Arial, sans-serif; font-size: 14px;">Fonte:http://oggiscienza.wordpress.com/2012/11/12/libri-capire-davvero-la-relativita/#more-34219</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2012/11/libri-capire-davvero-la-relativita/scienza/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tecniche per ottenere sogni lucidi</title>
		<link>http://www.blogdreams.it/2012/10/tecniche-per-ottenere-sogni-lucidi/cose</link>
		<comments>http://www.blogdreams.it/2012/10/tecniche-per-ottenere-sogni-lucidi/cose#comments</comments>
		<pubDate>Mon, 29 Oct 2012 10:46:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cos'è?]]></category>
		<category><![CDATA[Scienza]]></category>
		<category><![CDATA[induzione]]></category>
		<category><![CDATA[lucido]]></category>
		<category><![CDATA[ottenere]]></category>
		<category><![CDATA[sogno]]></category>
		<category><![CDATA[tecniche]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1522</guid>
		<description><![CDATA[Il punto focale dell&#39;esperienza del sogno lucido &#232; rendersi conto del fatto di stare sognando. A tal proposito, &#232; necessario ricercare nel proprio sogno dei segni che indichino chiaramente una situazione bizzarra o irrealizzabile nel mondo reale.&#160; Prerequisito necessario per poter sperimentare il sogno lucido &#232; quello di riuscire a ricordare i propri sogni. Il [...]]]></description>
				<content:encoded><![CDATA[<div><img align="left" alt="" height="166" src="http://www.blogdreams.it/wp-content/uploads/image/Sogno-Lucido.jpg" style="padding-right:20px" width="250" /><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Il punto focale dell&#39;esperienza del sogno lucido &egrave; rendersi conto del fatto di stare sognando. A tal proposito, &egrave; necessario ricercare nel proprio sogno dei segni che indichino chiaramente una situazione bizzarra o irrealizzabile nel mondo reale.&nbsp;</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Prerequisito necessario per poter sperimentare il sogno lucido &egrave; quello di riuscire a ricordare i propri sogni. Il metodo pi&ugrave; usuale utilizzato per potenziare tale abilit&agrave; &egrave; quello di tenere un registro (o diario) dei sogni da compilare al risveglio. Perch&eacute; ci&ograve; risulti efficace &egrave; importante svolgere tale operazione il pi&ugrave; presto possibile poich&eacute; il ricordo dei sogni tende a svanire molto rapidamente (in particolare &egrave; da sapere che i sogni che si ricordano sono in realt&agrave; i sogni che si fanno negli ultimi minuti di sonno prima del risveglio).&nbsp;</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Vi sono diverse tecniche che permettono di aumentare significativamente le probabilit&agrave; di avere un sogno lucido se applicate correttamente.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>RCT, metodo del controllo sulla realt&agrave;&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Una tecnica a priori per massimizzare la possibilit&agrave; di avere un sogno lucido consiste nell&#39;utilizzo del metodo del controllo sulla realt&agrave; (RCT, Reality Control Test). Si tratta durante il giorno di prestare attenzione pi&ugrave; volte a cose che durante il sogno cambiano, in modo tale da rendersi conto che si sta sognando. Ad esempio si potrebbe controllare l&#39;ora pi&ugrave; volte (in genere quando si controlla l&#39;orologio nel sogno e lo si ricontrolla anche a distanza di qualche secondo, l&#39;orario &egrave; mutato)&#8230;oppure fissare un panorama o una stanza pi&ugrave; volte (quando lo si fa nel sogno&#8230; in genere lo scenario cambia completamente). Riferirsi con questa tecnica a cose che non sono patrimonio dell&#39;inconscio (contrariamente al sogno che &egrave; invece patrimonio dell&#39;inconscio)&#8230; ergo controllare qualsiasi cosa che abbia a che fare con i numeri (orario, matrici di numeri, partenze e arrivi di treni o di aerei&#8230;), con frasi logiche in genere (&quot;mamma non &egrave; nanna&quot;&#8230;), con percorsi preferenziali (quando si guida un veicolo porre attenzione alla strada e magari notare qualche albero particolare&#8230;)</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>CAT, tecnica di adeguamento del ciclo&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">La CAT, acronimo di cycle adjustment technique, &egrave; una efficace tecnica per indurre un sogno lucido. &Egrave; stata sviluppata da Daniel Love, uno studioso britannico. Consiste nel calibrare il proprio ciclo di sonno al fine di aumentare le probabilit&agrave; di veglia durante la sua ultima parte. &Egrave; necessario svegliarsi 90 minuti prima del normale orario di sveglia, finch&eacute; il ciclo di sonno si regola sulle nuove condizioni. A questo punto si alternano le vecchie e le nuove condizioni di sveglia. Nei giorni con tempo di sveglia normale, lo stato di allerta sar&agrave; cos&igrave; aumentato rendendo il sogno lucido pi&ugrave; probabile.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>MILD, induzione mnemonica del sogno lucido&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Acronimo di Mnemonic Induction of Lucid Dreaming, &egrave; una delle tecniche pi&ugrave; utilizzate e consiste semplicemente nel coricarsi con l&#39;intenzione di riconoscere nel sogno delle situazioni inusuali o impossibili da verificarsi nella realt&agrave;. &Egrave; una tecnica molto semplice ed immediata da applicare ma non molto efficace se applicata da sola: solitamente si utilizza in combinazione con una delle altre per ottenere un effetto sinergico.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>WBTB, induzione per risveglio e riaddormentamento&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Acronimo di Wake Back To Bed. Questa tecnica applicata ad uno dei metodi &egrave; molto efficace; si sperimenta infatti un aumento del 62% dei sogni lucidi. La tecnica consiste nell&#39;andare a dormire e svegliarsi circa 5/6 ore dopo, restare svegli per un&#39;ora focalizzando i propri pensieri sul sogno lucido (semplicemente pensandoci o leggendo qualche libro sull&#39;argomento) ed infine tornare a letto, cercando di effettuare il MILD.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Questa procedura aumenta di molto la probabilit&agrave; di ottenere un sogno lucido. Ci&ograve; &egrave; dovuto al fatto che le fasi del sonno REM (quelle in cui si sogna) si allungano col prolungarsi della notte. Pi&ugrave; la fase REM &egrave; lunga, pi&ugrave; si alzano le probabilit&agrave; di acquisire lucidit&agrave; all&#39;interno di essa.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>WILD, sogni lucidi iniziati da sveglio&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Acronimo di Wake Initiated Lucid Dreams, questa tecnica consiste nell&#39;iniziare il sogno &quot;senza addormentarsi&quot; ed &egrave; resa possibile rilassando completamente il corpo ma mantenendo la mente vigile e concentrata su di esso. Il sogno lucido pu&ograve; essere raggiunto passando attraverso vari stadi: &egrave; possibile avvertire delle scosse attraversare il proprio corpo, essere preda di una particolare paralisi del sonno (innocua ma talvolta terrificante), assistere alla materializzazione di particolari immagini ipnagogiche davanti ai propri occhi (chiusi), e successivamente ritrovarsi in un ambiente onirico passando quindi da &quot;spettatore&quot; ad &quot;attore&quot; della scena.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Non &egrave; raro che l&#39;ambiente in cui ci si viene a ritrovare sia una riproduzione del luogo in cui ci si era appisolati: si pu&ograve; supporre che sia questo il tipo di esperienza sperimentata da quei soggetti che dichiarano di aver vissuto esperienze extracorporee come viaggi astrali o fenomeni paranormali del genere.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><strong>Induzione tramite stimoli esterni&nbsp;</strong></span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Alcuni ricercatori hanno sperimentato stimoli acustici su soggetti quando essi entravano nella fase REM, come l&#39;ascolto di un nastro con frasi tipo &quot;Questo &egrave; un sogno&quot;.</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	</span></span></div>
<div><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Sono inoltre in commercio dei dispositivi, come ad esempio il NovaLucidDreamer, che si presentano come mascherine da indossare a mo&#39; di occhiali quando si va a dormire. I sensori dell&#39;apparecchio si accorgono quando il soggetto entra in fase REM e provvedono ad inviargli degli stimoli tramite led luminosi (talvolta si pu&ograve; anche programmarli con suoni e/o registrazioni). A questo punto, se il dormiente sar&agrave; in grado di avvertirli ed interpretarli correttamente, potr&agrave; ottenere la lucidit&agrave; nel sogno, anche perch&eacute; richiede da parte dell&#39;aspirante onironauta la capacit&agrave; di porsi spontaneamente la verifica della percezione con i suddetti test di realt&agrave; (in questo caso deve &quot;predisporsi&quot; a riconoscere gi&agrave; durante il giorno delle luci lampeggianti). Comunque sia, il loro utilizzo viene proposto per facilitare l&#39;accesso a tale stato di coscienza.</span></span></div>
<div>&nbsp;</div>
<div>Fonte:&nbsp;<a href="http://it.wikipedia.org/wiki/Onironautica">http://it.wikipedia.org/wiki/Onironautica</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2012/10/tecniche-per-ottenere-sogni-lucidi/cose/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Paradossi della fisica quantistica</title>
		<link>http://www.blogdreams.it/2012/10/i-paradossi-della-fisica-quantistica/scienza</link>
		<comments>http://www.blogdreams.it/2012/10/i-paradossi-della-fisica-quantistica/scienza#comments</comments>
		<pubDate>Sat, 27 Oct 2012 23:39:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Considerazioni]]></category>
		<category><![CDATA[Scienza]]></category>
		<category><![CDATA[autostati]]></category>
		<category><![CDATA[cosciente]]></category>
		<category><![CDATA[fisica]]></category>
		<category><![CDATA[indeterminazione]]></category>
		<category><![CDATA[località]]></category>
		<category><![CDATA[non]]></category>
		<category><![CDATA[osservatore]]></category>
		<category><![CDATA[paradossi]]></category>
		<category><![CDATA[quantistica]]></category>
		<category><![CDATA[stati]]></category>

		<guid isPermaLink="false">http://www.blogdreams.it/?p=1520</guid>
		<description><![CDATA[Consiglio di dare una lettura all&#39;articolo seguente. Per chi non masticasse ancora di questi argomenti potrebbe rivelarsi davvero illuminante ( quanto abbordabilissimo ). http://www.ipotesi.net/ipotesi/perche.htm Alcune citazioni: Soltanto all&#39;atto della&#160;misurazione&#160;fisica si pu&#242; ottenere un valore reale; ma finch&#233; la misura non viene effettuata, l&#39;oggetto quantistico rimane in uno stato che &#232; &#34;oggettivamente indefinito&#34;, sebbene sia matematicamente [...]]]></description>
				<content:encoded><![CDATA[<p><span style="color: rgb(51, 51, 51); font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 17px; "><img align="left" alt="" height="150" src="http://www.blogdreams.it/wp-content/uploads/image/blu.jpg" style="padding-right:20px" width="200" /><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">Consiglio di dare una lettura all&#39;articolo seguente. Per chi non masticasse ancora di questi argomenti potrebbe rivelarsi davvero illuminante ( quanto abbordabilissimo ).</span></span></span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><a href="http://www.ipotesi.net/ipotesi/perche.htm">http://www.ipotesi.net/ipotesi/perche.htm</a></span></span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><br />
	Alcune citazioni:</span></span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><em><span style="color: rgb(0, 0, 0); ">Soltanto all&#39;atto della&nbsp;</span><i style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">misurazione</i><span style="color: rgb(0, 0, 0); ">&nbsp;fisica si pu&ograve; ottenere un valore reale; ma finch&eacute; la misura non viene effettuata, l&#39;oggetto quantistico rimane in uno stato che &egrave; &quot;oggettivamente indefinito&quot;, sebbene sia matematicamente definito: esso descrive solo una &quot;potenzialit&agrave;&quot; dell&#39;oggetto o del sistema fisico in esame, ovvero contiene l&#39;informazione relativa ad una &quot;rosa&quot; di valori possibili, ciascuno con la sua&nbsp;</span><i style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">probabilit&agrave;</i><span style="color: rgb(0, 0, 0); ">&nbsp;di divenire reale ed oggettivo all&#39;atto della misura.</span></em></span></span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; ">&#8230;</span></span></p>
<p><span style="font-family:verdana,geneva,sans-serif;"><span style="font-size: 12px; "><em><span style="color: rgb(0, 0, 0); ">Ogni particella o sistema fisico in ogni istante si trova in uno&nbsp;</span><i style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">stato</i><span style="color: rgb(0, 0, 0); ">&nbsp;ben definito. Matematicamente gli stati quantistici sono elementi di uno&nbsp;</span><i style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">spazio di Hilbert</i><span style="color: rgb(0, 0, 0); ">, uno spazio astratto che alcuni fisici definiscono come uno &quot;spazio delle potenzialit&agrave;&quot; o delle &quot;possibilit&agrave;&quot;</p>
<p>	&#8230;<br />
	</span></em><span style="color: rgb(0, 0, 0); "><em><br />
	Per ragioni di principio, non &egrave; possibile prevedere quale valore effettivo si avr&agrave; all&#39;atto della misura: a priori si ha soltanto una rosa di probabilit&agrave; su certi valori definiti, chiamati autovalori (i quali per&ograve; sono definiti con grande precisione).&nbsp;</em></p>
<p>	&#8230;</p>
<p>	</span><em><span style="color: rgb(0, 0, 0); ">In definitiva, gli oggetti quantistici si trovano in certi stati che&nbsp;</span><i style="color: rgb(0, 0, 0); font-family: arial; font-size: small; ">non</i><span style="color: rgb(0, 0, 0); ">&nbsp;sono sempre dotati di valore definito delle osservabili prima della misura: infatti &egrave; l&#39;osservatore che costringe la natura a rivelarsi in uno dei possibili valori, e questo &egrave; determinato dall&#39;osservazione stessa, cio&egrave; non esiste prima che avvenga la misurazione.&nbsp;</p>
<p>
	</span></em></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogdreams.it/2012/10/i-paradossi-della-fisica-quantistica/scienza/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
