On 2010-06-16 10:52:54 -0700, Brian Candler said:

> Max You wrote:
>> Anyone has any ideas?
> 
> Use JSON.

Use XML or JSON or any other data format (JSON obviously works very 
well with javascript), but don't let your data format design suffer 
because to_xml doesn't get the rendering right. Use Builder or some 
other means.
-- 
Rein Henrichs
http://puppetlabs.com
http://reinh.com