From: Martin DeMello Date: 2008-02-27T18:14:57+09:00 Subject: Re: How to parse attributes in ruby? On Wed, Feb 27, 2008 at 1:03 AM, dare ruby wrote: > Dear friends, > > I'am in process of creating a new parser class. My parser was showing > parsing errors in case of input like, > > > > i have got parsing error in attributes values " 24" boot-cut". I was > reading attributes values from " to ". But in above case double > quotes(") comes three times so my parser was not able to read it > properly. > > How to solve the above problem? I'd suggest you require that "s within strings be escaped somehow. Otherwise, the input is ambiguous - it might as well be 'size = "24"' followed by an unterminated '"boot cut' martin