News for hackers. Stuff that matters.
Re:A brief XML rant by masklinn on Monday March 04, 2013 @08:33AM (#5318072)
> Since they are using Rails, they should be using Builder for this

Indeed. It's really odd that they munged together an XML export in ERB when builder exist. Does it have some sort of breaking issue with namespaces or something which could explain the choice?

Re:A brief XML rant by mnarayan01 on Monday March 04, 2013 @10:25AM (#5318593)
Builder can be a bit of a pain if you want to do things that are...let us say "questionable" (e.g. output a tag with inner content which is _not_ XML escaped).
Re:A brief XML rant by masklinn on Monday March 04, 2013 @10:50AM (#5318743)
There's no such thing in this case though, there's a single layer of tags with escaped content inside (the example document uses CDATA, but as others have noted automated generation is not a good use case for CDATA)
Re:A brief XML rant by mnarayan01 on Monday March 04, 2013 @12:41PM (#5319343)
Agreed; just saying in general. Also, I would guess the reason they used ERB here is simply familiarity, not any type of reasoned decision.