Re: XML Parser problem...

2009-04-16 Thread olivier nouguier
Hi,
What it the output ?
Did you inherit XML module.


On Thu, Apr 16, 2009 at 9:04 AM, Soren Johnson soren.john...@gmail.comwrote:


 I can't seem to get XMLParser.parse() to work, even with what looks
 like valid XML. Do I need to remove all the '\n' and '\r' from the
 String? Is there another common gotcha? thanks...
 



-- 
   “There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way is
to make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.”

   Sir Charles Anthony Richard Hoare

--~--~-~--~~~---~--~~
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-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: XML Parser problem...

2009-04-16 Thread Jeff Chimene

On Thu, Apr 16, 2009 at 12:04 AM, Soren Johnson soren.john...@gmail.com wrote:

 I can't seem to get XMLParser.parse() to work, even with what looks
 like valid XML. Do I need to remove all the '\n' and '\r' from the
 String? Is there another common gotcha? thanks...

Are you talking about embedded whitespace in the content?
stuffhere
is
stuff
/stuff

or
stuffhere is stuff/stuff

or
stuff
some
stuff
/some
/stuff

Or some other issue?

Whitespace is significant in certain contexts. There is a API call
that can remove the whitespace of the last example. The whitespace of
the fist example is significant. You'll have to remove it yourself if
that's what you want.

--~--~-~--~~~---~--~~
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-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: XML Parser problem...

2009-04-16 Thread Soren Johnson

oops, what I was actually trying to do is use GWT's XMLParser on the
server-side. This is forbidden, apparently. Is there anyway to get
around this restriction? I would love to be able to have one piece of
code that parses the same piece of XML on the client as well as the
server. I don't want to have parallel but different pieces of code
that do essentially the same thing on the server as on the client...

On Apr 16, 2:10 am, olivier nouguier olivier.nougu...@gmail.com
wrote:
 Hi,
 What it the output ?
 Did you inherit XML module.

 On Thu, Apr 16, 2009 at 9:04 AM, Soren Johnson soren.john...@gmail.comwrote:



  I can't seem to get XMLParser.parse() to work, even with what looks
  like valid XML. Do I need to remove all the '\n' and '\r' from the
  String? Is there another common gotcha? thanks...

 --
    “There are two ways of constructing a software design: One way is to make
 it so simple that there are obviously no deficiencies, and the other way is
 to make it so complicated that there are no obvious deficiencies. The first
 method is far more difficult.”

    Sir Charles Anthony Richard Hoare
--~--~-~--~~~---~--~~
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-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: XML Parser problem...

2009-04-16 Thread Jason Essington

Nope, the GWT parser is actually just JSNI calls to the browser's  
parser and since the browser doesn't exist on the server, it couldn't  
really work.

There are plenty of XML libs for java though.

-jason

On Apr 16, 2009, at 9:50 AM, Soren Johnson wrote:


 oops, what I was actually trying to do is use GWT's XMLParser on the
 server-side. This is forbidden, apparently. Is there anyway to get
 around this restriction? I would love to be able to have one piece of
 code that parses the same piece of XML on the client as well as the
 server. I don't want to have parallel but different pieces of code
 that do essentially the same thing on the server as on the client...

 On Apr 16, 2:10 am, olivier nouguier olivier.nougu...@gmail.com
 wrote:
 Hi,
 What it the output ?
 Did you inherit XML module.

 On Thu, Apr 16, 2009 at 9:04 AM, Soren Johnson  
 soren.john...@gmail.comwrote:



 I can't seem to get XMLParser.parse() to work, even with what looks
 like valid XML. Do I need to remove all the '\n' and '\r' from the
 String? Is there another common gotcha? thanks...

 --
“There are two ways of constructing a software design: One way  
 is to make
 it so simple that there are obviously no deficiencies, and the  
 other way is
 to make it so complicated that there are no obvious deficiencies.  
 The first
 method is far more difficult.”

Sir Charles Anthony Richard Hoare
 


--~--~-~--~~~---~--~~
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-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: XML Parser problem...

2009-04-16 Thread Salvador Diaz

And just to mention one of my favourite XML libs for java: you should
check XStream, it has some really nice features and it's pretty easy
to use.

On Apr 16, 6:21 pm, Jason Essington jason.essing...@gmail.com wrote:
 Nope, the GWT parser is actually just JSNI calls to the browser's  
 parser and since the browser doesn't exist on the server, it couldn't  
 really work.

 There are plenty of XML libs for java though.

 -jason

 On Apr 16, 2009, at 9:50 AM, Soren Johnson wrote:



  oops, what I was actually trying to do is use GWT's XMLParser on the
  server-side. This is forbidden, apparently. Is there anyway to get
  around this restriction? I would love to be able to have one piece of
  code that parses the same piece of XML on the client as well as the
  server. I don't want to have parallel but different pieces of code
  that do essentially the same thing on the server as on the client...

  On Apr 16, 2:10 am, olivier nouguier olivier.nougu...@gmail.com
  wrote:
  Hi,
  What it the output ?
  Did you inherit XML module.

  On Thu, Apr 16, 2009 at 9:04 AM, Soren Johnson  
  soren.john...@gmail.comwrote:

  I can't seem to get XMLParser.parse() to work, even with what looks
  like valid XML. Do I need to remove all the '\n' and '\r' from the
  String? Is there another common gotcha? thanks...

  --
     “There are two ways of constructing a software design: One way  
  is to make
  it so simple that there are obviously no deficiencies, and the  
  other way is
  to make it so complicated that there are no obvious deficiencies.  
  The first
  method is far more difficult.”

     Sir Charles Anthony Richard Hoare
--~--~-~--~~~---~--~~
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-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
-~--~~~~--~~--~--~---