Update #1: toXML

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.

Archived Comments

Comment 1 by Devon posted on 10/13/2007 at 11:46 AM

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.

Comment 2 by Dominic Watson posted on 10/13/2007 at 2:16 PM

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

Comment 3 by Raymond Camden posted on 10/13/2007 at 4:41 PM

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.