<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Parsing a XML Sandwich with JavaFX</title>
	<atom:link href="http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/</link>
	<description></description>
	<lastBuildDate>Fri, 09 Mar 2012 04:14:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mohamed</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-5534</link>
		<dc:creator>Mohamed</dc:creator>
		<pubDate>Fri, 16 Jul 2010 09:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-5534</guid>
		<description>Hi 
i&#039;m beginer in java FX, i&#039;ve tried to create the parser function to get data from Xml file i got the same error message:

java.lang.NoSuchMethodException: newpackage.NewJavaFXClass.javafx$run$(com.sun.javafx.runtime.sequence.Sequence)
        at java.lang.Class.getMethod(Unknown Source)
        at com.sun.javafx.runtime.Entry.start(Entry.java:63)
        at com.sun.javafx.runtime.Main.main(Main.java:80)

i&#039;m trying to get the data from the XML file and save them into a public variable so i can use them in other classes.
bellow is the function that i&#039;m using:
import javafx.data.pull.*;
import java.io.FileInputStream;
import java.lang.System;
import javafx.data.xml.QName;

    
       public function loadData( ): Void{
var imageURL8 : String [] = [ &quot;&quot; ];
var myparser = PullParser {
   documentType: PullParser.XML;
   onEvent: function (e: Event) {
      // starter xml elements
      if(e.type == PullParser.START_ELEMENT){
         // Carousel
         if(e.qname.name.equals(&quot;Carousel&quot;)){
            System.out.println(&quot;Carousel&quot;);
         }

         // PrincipalService
            if(e.qname.name.equals(&quot;PrincipalService&quot;)){
                 System.out.println(&quot;PrincipalService&quot;);
            }

         // Image
                 if(e.qname.name.equals(&quot;Image&quot;)){
                    System.out.println(&quot;Image&quot;);
                }

         // Label
                    if(e.qname.name.equals(&quot;Label&quot;)){
                         System.out.println(&quot;Label&quot;);
                    }

//          ImageLink
                    if(e.qname.name.equals(&quot;ImageLink&quot;)){
                        System.out.println(&quot;ImageLink&quot;);
                    }
                        for (i in [1..5]){
                            if(e.qname.name.equals(&quot;Url{i}&quot;)){
                                imageURL8[i]= e.getAttributeValue(QName{name:&quot;Address&quot;});
                                 System.out.println(imageURL8[i]);
                             }
                        }

         // description
         if(e.qname.name.equals(&quot;description&quot;)){
            var type= e.getAttributeValue(QName{name:&quot;type&quot;});
            System.out.println(type);
            if(type.equals(&quot;long&quot;)){
                    System.out.println(&quot;ok&quot;);

            } else {

            }
         }
      }

      // ending xml elements
      if(e.type == PullParser.END_ELEMENT){
         if(e.qname.name.equals(&quot;data&quot;)){

         }
      }
   }
   input: new FileInputStream(&quot;/Parametter.xml&quot;);
}
myparser.parse();

}

Can any body help me to solve this problem as soon as possible.

other thing that&#039;s not related to this, but it&#039;s closer, how can we save data from JavaFX to an XML file

(i&#039;m using Netbeans 6.9 with JavaFX 1.3)
thank you in advance for your help</description>
		<content:encoded><![CDATA[<p>Hi<br />
i&#8217;m beginer in java FX, i&#8217;ve tried to create the parser function to get data from Xml file i got the same error message:</p>
<p>java.lang.NoSuchMethodException: newpackage.NewJavaFXClass.javafx$run$(com.sun.javafx.runtime.sequence.Sequence)<br />
        at java.lang.Class.getMethod(Unknown Source)<br />
        at com.sun.javafx.runtime.Entry.start(Entry.java:63)<br />
        at com.sun.javafx.runtime.Main.main(Main.java:80)</p>
<p>i&#8217;m trying to get the data from the XML file and save them into a public variable so i can use them in other classes.<br />
bellow is the function that i&#8217;m using:<br />
import javafx.data.pull.*;<br />
import java.io.FileInputStream;<br />
import java.lang.System;<br />
import javafx.data.xml.QName;</p>
<p>       public function loadData( ): Void{<br />
var imageURL8 : String [] = [ "" ];<br />
var myparser = PullParser {<br />
   documentType: PullParser.XML;<br />
   onEvent: function (e: Event) {<br />
      // starter xml elements<br />
      if(e.type == PullParser.START_ELEMENT){<br />
         // Carousel<br />
         if(e.qname.name.equals(&#8220;Carousel&#8221;)){<br />
            System.out.println(&#8220;Carousel&#8221;);<br />
         }</p>
<p>         // PrincipalService<br />
            if(e.qname.name.equals(&#8220;PrincipalService&#8221;)){<br />
                 System.out.println(&#8220;PrincipalService&#8221;);<br />
            }</p>
<p>         // Image<br />
                 if(e.qname.name.equals(&#8220;Image&#8221;)){<br />
                    System.out.println(&#8220;Image&#8221;);<br />
                }</p>
<p>         // Label<br />
                    if(e.qname.name.equals(&#8220;Label&#8221;)){<br />
                         System.out.println(&#8220;Label&#8221;);<br />
                    }</p>
<p>//          ImageLink<br />
                    if(e.qname.name.equals(&#8220;ImageLink&#8221;)){<br />
                        System.out.println(&#8220;ImageLink&#8221;);<br />
                    }<br />
                        for (i in [1..5]){<br />
                            if(e.qname.name.equals(&#8220;Url{i}&#8221;)){<br />
                                imageURL8[i]= e.getAttributeValue(QName{name:&#8221;Address&#8221;});<br />
                                 System.out.println(imageURL8[i]);<br />
                             }<br />
                        }</p>
<p>         // description<br />
         if(e.qname.name.equals(&#8220;description&#8221;)){<br />
            var type= e.getAttributeValue(QName{name:&#8221;type&#8221;});<br />
            System.out.println(type);<br />
            if(type.equals(&#8220;long&#8221;)){<br />
                    System.out.println(&#8220;ok&#8221;);</p>
<p>            } else {</p>
<p>            }<br />
         }<br />
      }</p>
<p>      // ending xml elements<br />
      if(e.type == PullParser.END_ELEMENT){<br />
         if(e.qname.name.equals(&#8220;data&#8221;)){</p>
<p>         }<br />
      }<br />
   }<br />
   input: new FileInputStream(&#8220;/Parametter.xml&#8221;);<br />
}<br />
myparser.parse();</p>
<p>}</p>
<p>Can any body help me to solve this problem as soon as possible.</p>
<p>other thing that&#8217;s not related to this, but it&#8217;s closer, how can we save data from JavaFX to an XML file</p>
<p>(i&#8217;m using Netbeans 6.9 with JavaFX 1.3)<br />
thank you in advance for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohamed</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-5480</link>
		<dc:creator>mohamed</dc:creator>
		<pubDate>Tue, 22 Jun 2010 15:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-5480</guid>
		<description>thank you for this tutorial!!! great job:)
but can we get an example about the other sense, i mean to write date from javaFX to XML file? thanks in advance</description>
		<content:encoded><![CDATA[<p>thank you for this tutorial!!! great job:)<br />
but can we get an example about the other sense, i mean to write date from javaFX to XML file? thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-4829</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-4829</guid>
		<description>describe sandwiches using xml - is a great idea :-D</description>
		<content:encoded><![CDATA[<p>describe sandwiches using xml &#8211; is a great idea :-D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rishabh Rao</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-4761</link>
		<dc:creator>Rishabh Rao</dc:creator>
		<pubDate>Wed, 13 Jan 2010 09:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-4761</guid>
		<description>Thanks Silveira for this awesome tutorial! It helped me a lot while developing my first JavaFX application - Open-Source Jumble! Please see my blog at http://osum.sun.com/profiles/blogs/jumble-javafx-style!</description>
		<content:encoded><![CDATA[<p>Thanks Silveira for this awesome tutorial! It helped me a lot while developing my first JavaFX application &#8211; Open-Source Jumble! Please see my blog at <a href="http://osum.sun.com/profiles/blogs/jumble-javafx-style" rel="nofollow">http://osum.sun.com/profiles/blogs/jumble-javafx-style</a>!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silveira Neto &#187; Blog Archive &#187; JavaFX, Retrieving non XML/JSON data from clouds</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-3820</link>
		<dc:creator>Silveira Neto &#187; Blog Archive &#187; JavaFX, Retrieving non XML/JSON data from clouds</dc:creator>
		<pubDate>Sun, 31 May 2009 15:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-3820</guid>
		<description>[...] Usuually on JavaFX we grab data using HttpRequest from external resources on formats like JSON or XML. I showed how to get it on the post Reading Twitter with JavaFX and how to parse it using PullParser on the post Parsing a XML sandwich with JavaFX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Usuually on JavaFX we grab data using HttpRequest from external resources on formats like JSON or XML. I showed how to get it on the post Reading Twitter with JavaFX and how to parse it using PullParser on the post Parsing a XML sandwich with JavaFX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silveira Neto &#187; Blog Archive &#187; JavaFX, Acessando Recursos de Dentro do JAR</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-3676</link>
		<dc:creator>Silveira Neto &#187; Blog Archive &#187; JavaFX, Acessando Recursos de Dentro do JAR</dc:creator>
		<pubDate>Sat, 11 Apr 2009 15:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-3676</guid>
		<description>[...] recursos internos (de dentro do próprio arquivo jar) não é tão direto. Por exemplo, no artigo Parsing a XML Sandwich with JavaFX eu tive que colocar o arquvio XML dentro de um diretório temporário. Uma maneira mais elegante [...]</description>
		<content:encoded><![CDATA[<p>[...] recursos internos (de dentro do próprio arquivo jar) não é tão direto. Por exemplo, no artigo Parsing a XML Sandwich with JavaFX eu tive que colocar o arquvio XML dentro de um diretório temporário. Uma maneira mais elegante [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silveira Neto &#187; Blog Archive &#187; JavaFX, getting resource inside your JAR</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-3671</link>
		<dc:creator>Silveira Neto &#187; Blog Archive &#187; JavaFX, getting resource inside your JAR</dc:creator>
		<pubDate>Fri, 10 Apr 2009 19:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-3671</guid>
		<description>[...] loading a internal resource (inside your own jarfile) is not so direct. For example, in the article Parsing a XML Sandwich with JavaFX I had to place the XML file in a temp directory. A easy way would be: package handlexml; &#160; [...]</description>
		<content:encoded><![CDATA[<p>[...] loading a internal resource (inside your own jarfile) is not so direct. For example, in the article Parsing a XML Sandwich with JavaFX I had to place the XML file in a temp directory. A easy way would be: package handlexml; &nbsp; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silveira Neto &#187; Blog Archive &#187; Reding Twitter with JavaFX</title>
		<link>http://silveiraneto.net/2008/12/25/parsing-xml-sandwich-with-javafx/comment-page-1/#comment-3344</link>
		<dc:creator>Silveira Neto &#187; Blog Archive &#187; Reding Twitter with JavaFX</dc:creator>
		<pubDate>Sun, 04 Jan 2009 22:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://silveiraneto.net/?p=2018#comment-3344</guid>
		<description>[...] my last post about JavaFX I showed how to parse XML documents (and make sandwiches) with JavaFX. Here we&#8217;ll use the [...]</description>
		<content:encoded><![CDATA[<p>[...] my last post about JavaFX I showed how to parse XML documents (and make sandwiches) with JavaFX. Here we&#8217;ll use the [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

