[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Fwd: Re: better (?) than DOM
On Fri, 23 Feb 2007 07:02:37 -0500, Robin Berjon <robin@j...> wrote: > On Feb 23, 2007, at 12:57, Manos Batsis wrote: >> Quoting Robin Berjon <robin@j...>: >>> It seems to be begging for E4X, which is IMHO a lot >>> clearer than the above. >> >> As said in my original email (sent only to Nathan by accident), >> interoperability is, again, the problem :-/ > > I know, and sorry for being too cursory to be clear. My point was more > about how if you want to produce XML, why not use... XML! E4X requires > the browser to be updated, which means it'll be a while before it's > widely useable, but there are other options that are also more readable > than method calls nested twelve times. For instance the various > Javascript templating libraries could come in quite useful there I'd say. > I find simply concatenating strings (var x=[]; x.push("..."); x.join("");) to be the easiest and fastest (in terms of processing and writing). Either stick it in innerHTML (definitely fastest) or create a DOM Document and grab what you need with XPath. best, -Rob -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|