From: Michel Casabianca Date: 2008-02-27T19:24:11+09:00 Subject: Re: How to parse attributes in ruby? dare ruby wrote: > Thank you sebastian and martin. so its invalid to pass xml like that i > hope. > The attribute value should be like, > > size=' 24" boot-cut ' > > or like, > > size=" 24' boot-cut" > > Is the above xml is valid. Please suggest a better way of inputs in > proper xml for above attributes. Yes, it's valid, but I suggest a better way: size=" 24" boot-cut" Replacing " with its XML entity ". Any attribute value should be processed to replace special XML characters ("'<>&) with their entity. -- Michel Casabianca michel.casabianca@gmail.com