I need to create a html template from xml data without using xslt in a mvc application.
my solution was: first I used json.net (http://json.codeplex.com/) to convert xml into json. second I converted above json string to javascript object literal by using $parse.Json (http://api.jquery.com/jQuery.parseJSON/) third I used jsRender (https://github.com/BorisMoore/jsrender) to add values to html template.
All good everything is fine. But I need to write own js for render html rather than jsRender.
my question is: How to loop through each js object and find the relavent html tag and add the value.