Change xml transform from stream to recursive
Add script tag insertion for node onclick handling with javascript