aspose file tools*
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 Spring in Action this week in the Spring 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: 15376
    
    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: 15376
    
    6
Use Ajax, use responseXML, loop through it and make the HTML needed.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML to HTML using JavaScript