This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes XML to HTML using JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "XML to HTML using JavaScript" Watch "XML to HTML using JavaScript" New topic
Author

XML to HTML using JavaScript

Vinutha Jagadish
Greenhorn

Joined: Nov 20, 2009
Posts: 18

Hi,

Ho to convert XML to HTML using JavaScript.

Thanks,
Jagadish.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
You mean through Ajax [XMLHttpRequest Object]? More details means better answers.

Eric
Vinutha Jagadish
Greenhorn

Joined: Nov 20, 2009
Posts: 18
Hi Eric,

I have XML like below, i want to read this XML using JavaScript and i need to display in HTML page as a table with row and column.



Thanks,
Jagadish.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
Use Ajax, use responseXML, loop through it and make the HTML needed.

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: XML to HTML using JavaScript
 
jQuery in Action, 3rd edition