ItemToXMLDroplet

///ItemToXMLDroplet

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]

By |2007-08-06T19:52:17+00:00August 6th, 2007|ATG, Java|0 Comments

About the Author:

Devon is a husband, amateur photographer, avid reader, and motorcycle enthusiast.

Leave A Comment