Re: Parser xml on server

2012-05-02 Thread Thad
To use XML on the client side, you need to add

inherits name='com.google.gwt.xml.XML' /

to your project's --.gwt.xml file.
 
On Wednesday, August 18, 2010 6:45:57 AM UTC-4, Xavier wrote:

 Hello, 

 I have a problem. I parser a xml from the server, but the following 
 error occurs: 

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gwt.xml.client.XMLParser 

 I understand that this package can not be used on the server. 

 Could someone tell me how I colud parser an XML on  the server side. 

 Thanks in advance. 

 Sincerely, 

 Xavier

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lpC2jfXYCQwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Parser xml on server

2012-04-30 Thread Magallo
Hi all, I have a similar problem.

If I wanted to share a class that has a method 'loadXmlString(String xml)'  
and I wanted to use it sometims client side, sometimwes server side, how 
could I do? I see that client side this works using 
com.google.gwt.xml.client.* classes, but when I try to execute it server 
side, a java.lang.NoClassDefFoundError: Could not initialize class 
com.google.gwt.xml.client.XMLParser  error occurs. How can I solve this 
problem? Do I have to implement the same parsing algorithm twice? One 
client side and one server side? I can't believe that!

Please help.

On Wednesday, August 18, 2010 12:45:57 PM UTC+2, Xavier wrote:

 Hello, 

 I have a problem. I parser a xml from the server, but the following 
 error occurs: 

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gwt.xml.client.XMLParser 

 I understand that this package can not be used on the server. 

 Could someone tell me how I colud parser an XML on  the server side. 

 Thanks in advance. 

 Sincerely, 

 Xavier


On Wednesday, August 18, 2010 12:45:57 PM UTC+2, Xavier wrote:

 Hello, 

 I have a problem. I parser a xml from the server, but the following 
 error occurs: 

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gwt.xml.client.XMLParser 

 I understand that this package can not be used on the server. 

 Could someone tell me how I colud parser an XML on  the server side. 

 Thanks in advance. 

 Sincerely, 

 Xavier


On Wednesday, August 18, 2010 12:45:57 PM UTC+2, Xavier wrote:

 Hello, 

 I have a problem. I parser a xml from the server, but the following 
 error occurs: 

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
 com.google.gwt.xml.client.XMLParser 

 I understand that this package can not be used on the server. 

 Could someone tell me how I colud parser an XML on  the server side. 

 Thanks in advance. 

 Sincerely, 

 Xavier

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/cMxRKz244gQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Parser xml on server

2010-08-18 Thread Xavier
Hello,

I have a problem. I parser a xml from the server, but the following
error occurs:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.google.gwt.xml.client.XMLParser

I understand that this package can not be used on the server.

Could someone tell me how I colud parser an XML on  the server side.

Thanks in advance.

Sincerely,

Xavier

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Parser xml on server

2010-08-18 Thread lazins...@gmail.com
Hi Xavier, I think you need jdom or dom4j (the latter I have never
used but jdom works fine)

regards

On 18 Sie, 12:45, Xavier astella...@gmail.com wrote:
 Hello,

 I have a problem. I parser a xml from the server, but the following
 error occurs:

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class
 com.google.gwt.xml.client.XMLParser

 I understand that this package can not be used on the server.

 Could someone tell me how I colud parser an XML on  the server side.

 Thanks in advance.

 Sincerely,

 Xavier

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.