Raymond Camden's Blog Rss

Update #1: toXML

3

Posted in ColdFusion | Posted on 10-12-2007 | 2,306 views

The first update I have today is for toXML. While I find myself using JSON more, I sitll find toXML to be a very useful component. It converts arrays, lists, structs, and queries to XML. Today's update is a simple one. The queryToXML function now lets you specify the columns you want to serialize. This can help keep XML packets a bit slimmer (if only there was such an easy solution for people).

The next update will be in about two hours and will hopefully be a bit more exciting.

You can download toXML here.

Comments

[Add Comment] [Subscribe to Comments]

Hi Ray
I recently used your toXML but had hack it a bit to get it to work with multi-dimensional structures. A feature to consider for the next release? I'll send my code through if I manage to get the recursive version working correctly. At the moment I've just used to loops to allow for another level.
Devon, my component(s), http://betterxml.riaforge.org/, will work with 'multi-dimensional' structs and also allows you to insert the xml created into other XML using XPath (and lots more).

Ray, I was wondering if I could use any of your components methods in my own. I think the Query one would be very useful (of course it would be fully credited).

Dom
Devon: I did do some work after this release on getting recursiveness working. I'll have it in the next version.

Dominic: Sure thing. Sounds like we've got similar products - no reason we can't share.