When we process XML in client side, we can use jQuery like:
var kids = jQuery("<a><kid>ABC</kid><kid>BCD</kid></a>").find("kid");
, now in adapter implementation script (i.e. MyAdapter-impl.js), can we have a similar solution to iterate over XML text or extract/update DOM nodes simply? , currently I use Java function to do it, I'm looking for JavaScript solution.
You can use XSL Transformation to pre-process your XML before it is returning to the client.
Example can be found in these question:
Alternatively, you can manipulate the JSON object in the adapter before return
ing it.