How to handle XML services in AngularJS?

angeles

New Member
My company has thousands of existing xml web services and is starting to adopt angularjs for new projects.The tutorial over at http://angularjs.org/ uses json services exclusively. It looks like they make a service call in the controller, parse the resulting json, and pass the resulting object directly to the view.What do I do with XML? I see four options:[*]Parse it and pass the dom object directly to the UI.[*]Put a json wrapper around my xml services on the server side.[*]convert the dom object to json with some library on the client side and convert it back when I make the post/put requests.[*]Convert the dom object to a javascript object manually on the client side.What the correct approach and why?Thanks!
 
Back
Top