<?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>Silveira Neto &#187; web services</title>
	<atom:link href="http://silveiraneto.net/tag/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description>the world is a pixel</description>
	<lastBuildDate>Sun, 08 Jan 2012 05:17:57 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>FootprintFX</title>
		<link>http://silveiraneto.net/2009/06/02/footprintfx/</link>
		<comments>http://silveiraneto.net/2009/06/02/footprintfx/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 04:53:28 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[Felipe Gaúcho]]></category>
		<category><![CDATA[Footprint]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2646</guid>
		<description><![CDATA[Footprint is a publisher and distributor of certificates of participation in conferences &#8211; signed PDF documents that prove you attended a conference or a course. This is a little JavaFX application that shows how to create a interface that displays data provided by services. This version uses three services: one that counts the number of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-2647 aligncenter" title="Footprint logo" src="http://silveiraneto.net/wp-content/uploads/2009/06/footprintlogo.jpg" alt="Footprint logo" width="109" height="80" /></p>
<p><a title="Footprint" href="https://footprint.dev.java.net/">Footprint</a> is a publisher and distributor of certificates of participation in conferences &#8211; signed PDF documents that prove you attended a conference or a course.</p>
<p>This is a little JavaFX application that shows how to create a interface that displays data provided by services. This version uses three services: one that counts the number of users, other that counts the number of events and one that list these events. Check out the <a title="JAVAFX Source Code " href="http://silveiraneto.net/downloads/javafx/footprintfx/src/footprintfx/Main.fx">source code here</a>.  Try the application as a draggable <a title="JavaFX" href="http://silveiraneto.net/downloads/javafx/footprintfx/dist/footprintfx.html">JavaFX applet here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2009/06/02/footprintfx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing a XML Sandwich with JavaFX</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/</link>
		<comments>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 02:39:54 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[jfx]]></category>
		<category><![CDATA[openjfx]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[web services]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=2018</guid>
		<description><![CDATA[Let sandwich.xml be a file at /tmp directory with the content above. &#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62; &#160; &#60;bread sesame=&#34;true&#34;&#62; &#60;catchup/&#62; &#60;hamburguer/&#62; &#60;cheese type=&#34;chedar&#34;/&#62; &#60;maionese/&#62; &#60;lettuce/&#62; &#60;/bread&#62; We can open it using java.io.FileInputStream and so use it on a javafx.data.pull.PullParser. A PullParser is a event oriented parser that works with XML and YAML files. Above a general [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://silveiraneto.net/wp-content/uploads/2008/12/sandwich.jpg" alt="delicious sandwich" title="delicious sandwich" width="400" height="257" class="alignnone size-full wp-image-2022" /></center></p>
<p>Let sandwich.xml be a file at /tmp directory with the content above.</p>
<div class="wp_syntax">
<div class="code">
<pre class="xml xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bread</span> <span style="color: #000066;">sesame</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;catchup</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hamburguer</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cheese</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;chedar&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;maionese</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;lettuce</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bread<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre>
</div>
</div>
<p>We can open it using java.io.FileInputStream and so use it on a <a href="http://java.sun.com/javafx/1/docs/api/javafx.data.pull/javafx.data.pull.PullParser.html">javafx.data.pull.PullParser</a>. A PullParser is a event oriented parser that works with XML and YAML files. Above a general and simple parser with a GUI that show the list of events during the parse process.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileInputStream</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.data.pull.Event</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.data.pull.PullParser</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.ext.swing.SwingList</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.ext.swing.SwingListItem</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.Scene</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.stage.Stage</span>;
&nbsp;
var list <span style="color: #339933;">=</span> SwingList <span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> <span style="color: #cc66cc;">600</span> height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">300</span> <span style="color: #009900;">&#125;</span>
&nbsp;
var myparser <span style="color: #339933;">=</span> PullParser <span style="color: #009900;">&#123;</span>
   documentType<span style="color: #339933;">:</span> PullParser.<span style="color: #006633;">XML</span>;
   onEvent<span style="color: #339933;">:</span> function <span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span> <span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      var item <span style="color: #339933;">=</span> SwingListItem <span style="color: #009900;">&#123;</span>
         text<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;event {e}&quot;</span>
      <span style="color: #009900;">&#125;</span>;
      insert item into list.<span style="color: #006633;">items</span>;
   <span style="color: #009900;">&#125;</span>
   input<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><span style="color: #0000ff;">&quot;/tmp/sandwich.xml&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
myparser.<span style="color: #006633;">parse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
Stage <span style="color: #009900;">&#123;</span>
   title<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;XML Sandwich&quot;</span>
   scene<span style="color: #339933;">:</span> Scene <span style="color: #009900;">&#123;</span> content<span style="color: #339933;">:</span> list <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p><center><img src="http://silveiraneto.net/wp-content/uploads/2008/12/javafx_xml_sandwich.png" alt="javafx xml sandwich" title="javafx xml sandwich" width="625" height="354" class="alignnone size-full wp-image-2021" /></center></p>
<p>The XML cheese element produce two the outputs.</p>
<blockquote><p>type:1 typeName:START_ELEMENT level:1 qname:cheese text:&#8221; namespaces:{} attributes:{type=chedar}<br />
type:2 typeName:END_ELEMENT level:1 qname:cheese text:&#8221; namespaces:{} attributes:{type=chedar}</p></blockquote>
<p>Notice that white spaces like tab and escape characters like new line also produced events from type TEXT. We are not interested on them. Above a parser that looks only those events of type START_ELEMENT or END_ELEMENT, look into it&#8217;s contents, building a sandwich at runtime based on the XML file.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileInputStream</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.data.pull.Event</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.data.pull.PullParser</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.data.xml.QName</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.Image</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.image.ImageView</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.layout.VBox</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.scene.Scene</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javafx.stage.Stage</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">// my sandwich starts as an empty VBox</span>
var mysandwich <span style="color: #339933;">=</span> VBox <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// give a name and returns a ImageView with a png image like the name</span>
function ingredient<span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">return</span> ImageView <span style="color: #009900;">&#123;</span>
      image<span style="color: #339933;">:</span> <span style="color: #003399;">Image</span> <span style="color: #009900;">&#123;</span>
         url<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;{__DIR__}{name}.png&quot;</span>
      <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// basicaly, look the event and put a ingredient at mysandwich</span>
var myparser <span style="color: #339933;">=</span> PullParser <span style="color: #009900;">&#123;</span>
   documentType<span style="color: #339933;">:</span> PullParser.<span style="color: #006633;">XML</span>;
   onEvent<span style="color: #339933;">:</span> function <span style="color: #009900;">&#40;</span>e<span style="color: #339933;">:</span> <span style="color: #003399;">Event</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #666666; font-style: italic;">// starter xml elements</span>
      <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">type</span> <span style="color: #339933;">==</span> PullParser.<span style="color: #006633;">START_ELEMENT</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #666666; font-style: italic;">// bread</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;bread&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
             insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;bread_top&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// hamburguer</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;hamburguer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
             insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;hamburguer&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// catchup</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;catchup&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
             insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;catchup&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// maionese</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;maionese&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
             insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;maionese&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// lettuce</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;lettuce&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
             insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;lettuce&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
&nbsp;
         <span style="color: #666666; font-style: italic;">// cheese</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cheese&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            var type<span style="color: #339933;">=</span> e.<span style="color: #006633;">getAttributeValue</span><span style="color: #009900;">&#40;</span>QName<span style="color: #009900;">&#123;</span>name<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;type&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>type.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cheedar&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                 insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cheedar&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
            <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
                insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cheese&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
            <span style="color: #009900;">&#125;</span>
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// ending xml elements (just bread)</span>
      <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">type</span> <span style="color: #339933;">==</span> PullParser.<span style="color: #006633;">END_ELEMENT</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">qname</span>.<span style="color: #006633;">name</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;bread&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            insert ingredient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;bread_botton&quot;</span><span style="color: #009900;">&#41;</span> into mysandwich.<span style="color: #006633;">content</span>;
         <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>
   input<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><span style="color: #0000ff;">&quot;/tmp/sandwich.xml&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
myparser.<span style="color: #006633;">parse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
Stage <span style="color: #009900;">&#123;</span>
   title<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;XML Sandwich&quot;</span>
   scene<span style="color: #339933;">:</span> Scene <span style="color: #009900;">&#123;</span>
      height<span style="color: #339933;">:</span> <span style="color: #cc66cc;">300</span>
      content<span style="color: #339933;">:</span> mysandwich
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Here&#8217;s our sandwich.</p>
<p><center><img src="http://silveiraneto.net/wp-content/uploads/2008/12/sandwich_javafx.png" alt="sandwich javaFX" title="sandwich javaFX" width="335" height="349" class="alignnone size-full wp-image-2024" /></center></p>
<p>Just changing the XML file you got a new sandwich.</p>
<div class="wp_syntax">
<div class="code">
<pre class="java java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;!--</span> <span style="color: #000066; font-weight: bold;">double</span> burger <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>bread sesame<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;true&quot;</span><span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>maionese<span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>lettuce<span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>hamburguer<span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>cheese type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;chedar&quot;</span><span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>catchup<span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>hamburguer<span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;</span>lettuce<span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>bread<span style="color: #339933;">&gt;</span></pre>
</div>
</div>
<p><center><img src="http://silveiraneto.net/wp-content/uploads/2008/12/double_burguer_javafx.png" alt="double burguer " title="double burguer " width="338" height="355" class="alignnone size-full wp-image-2026" /></center></p>
<p>Bon appétit.</p>
<p>For more details on XML and JSON parsing see the <a href="http://java.sun.com/javafx/1/docs/api/javafx.data.pull/javafx.data.pull.PullParser.html">JavaFX API</a>.</p>
<p><small></p>
<ul>
<li><strong>ps:</strong> Sandwich image from <a href="http://commons.wikimedia.org/wiki/File:Lomito1.jpg">commons.wikimedia.org</a></li>
<li><strong>ps2:</strong> We&#8217;re out of sesame.</li>
<li><strong>ps3:</strong> Sources, <a href="http://silveiraneto.net/downloads/xmlsandwich.tar.bz2">xmlsandwich.tar.bz2</a>.</li>
</ul>
<p></small></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

