ItemToXMLDroplet

This is an extremely simple Droplet with source, a config file, and a sample JSP. All the droplet does it transform a passed-in RepositoryItem into XML and dump it out. It would be handy for vending data to client-side logic in JavaScript or Flash, when you don’t want to write-up a full WebService.

You can download it all here.

The example JSP takes in a query parameter userId and generates the XML for the user profile with that id. For instance, if you call:

http://alita.local:8840/test/test.jsp?userId=930003

you get this……



0





1980-02-11







false




2007-08-06T20:13:46.0
false





false






I may extend it to serve out collections of items (currently if you nest it in an RQLForEach or similar, you get the line once per item. It's not much, but hey, this is my first ATG post:)

Devon[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

PHP Code Snippets Powered By : XYZScripts.com