Converting HTML to XML and back without external tools



I'm kind of stuck here. I'm developing a client (Zentrick) app that only supports XmlHttpRequests (cross-platform problems are fixed). The client communicates with a ASP.NET MVC service. My first approach was to send HTML pages to the client and then injecting them into the views. After experimenting and doing some research, I conlcuded my client only accepts XML structure. Is there a simple way to convert HTML to XML on my service and convert the XML to HTML on my client (client only supports Javascript and basic jQuery (no Ajax requests)) in an easy way?


No comments:

Post a Comment