From: James Britt Date: 2005-07-02T04:35:49+09:00 Subject: Re: REXML bombs out in a javascript section of a well formed XHTML document Xeno Campanoli wrote: > As far as I can see, this javascript should just be text for the XML parser, > n'est-ce pas? But I bomb out several lines into it with: "this javascript" did not make it to my mail reader; did you include it? > > Illegal character '&' in raw string (referring to a javascript and (&&) operator > presumably. So, do we need to preparse the javascript out or something to be > able to do this stuff? What gives with that? Unless you are hiding the script element content with XML comment markup or wrapping it in CDATA markup, then it is interpreted as normal XML fodder, and the ampersand has a special meaning. James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys