Dynamic XML Software

Posted on 2012-03-16
Last Modified: 2012-03-28
Is there a software tool available that converts raw .xml codes into html files using AJAX/JavaScript as the programming code?
Question by:jj1103
  • 5
  • 5
LVL 10

Expert Comment

ID: 37729343
Yes, the XSLT tools do that kind of conversion from XML into HTML a.o., and you can call it from AJAX and javascript.

You have an example here:

Author Comment

ID: 37729375
I mean a software tool like Dreamweaver and Altova that makes it really easy to parse XML files into dynamic html so that the html will always display the xml as an external document. I'm looking for a recommended GUI application.
LVL 10

Expert Comment

ID: 37729865
What do you mean "parse XML"? With a program or looking at it?

If you only want to inspect the XML file as HTML, I suppose you want to see the source of your XML file with a browser.

That can be achieved by any browser like Firefox: when you point your Firefox browser to any XML file having no style sheet defined, you see the XML code, with neat indentation. Is that what you want?

Author Comment

ID: 37729931
No, I want to find a program that will display xml code in an orderly fashion in an html file.
LVL 10

Expert Comment

ID: 37731013
So if I understand you correctly, you have an XML file containing

<?xml version="1.0"?>
  <display>Hello world</display>

Open in new window

And you look for a program to transform it into:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
  <title>XML content</title>
  <p>&lt;?xml version="1.0"?&gt;
   &lt;display&gt;Hello world&lt;/display&gt;

Open in new window


Other question: The program you are looking for, does it have to be a graphic user interface program (GUI), or can it be a command line program (CLI)? I am asking this because you were speaking about AJAX and Javascript above, but what you are explaining now seems something different.

Or do you need to make a website showing XML code? In that case, which tools do you have for building that website? Static or dynamic ones?
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 37731047
Your first example is more what I mean. I am looking for a program like XMLspy that produces HTML files that display the contents in an XML file. Right now I am doing this by hand line by line using JavaScript/AJAX.  I had a trial version of XMLspy but it was too complicated for the simple pages I was building. These HTML files should be able to read off the XML file each time the HTML file is opened. There must be a simple program out there (like Dreamweaver for example) that is easy to use and can do what I currently do by hand.
LVL 10

Assisted Solution

pfrancois earned 500 total points
ID: 37731167
Dreamweaver is just a WYSIWYG HTML editor. So, I understand your problem is to create HTML pages showing pieces of XML code.

First choose a HTML editor. Why pay for Dreamweave when KompoZer or Amaya do the job?

The trick is to copy the XML code and to paste it into your HTML page, making it clear it is preformatted text.

I installed KompoZer five minutes ago. I created an empty HTML page, copied the XML piece of code above and tadaa!, the trick is to copy the XML code and to paste it into your HTML page, making it clear it is preformatted text.

So: just COPY and PASTE with KompoZer.

You can download KompoZer from this link:

Accepted Solution

jj1103 earned 0 total points
ID: 37746619
Thank-you all for your responses. I'm going to close this question. It seems there isn't a tool out there that does what I need. Thank you for your suggestions. I looked at Kompozer and it doesn't mention XML.  I need a program that does the AJAX for me and formats and displays XML dynamically so it reads off the xml file like an include.

Author Comment

ID: 37746680
I've requested that this question be closed as follows:

Accepted answer: 0 points for jj1103's comment #37746619
Assisted answer: 500 points for pfrancois's comment #37731167

for the following reason:

Although Kompozer didn't mention XML in the features, pfrancois's recommendation introduced me to a free program similar to Dreamweaver that I can play around thanks.
LVL 10

Expert Comment

ID: 37746681
Objection: as far as I understand, the author wants to convert XML into HTML in such a way that the HTML is showing the internal structure of XML.

He is speaking about an AJAX tool for doing that, but there is absolutely no need to implement some AJAX Javascript. He just has to copy the XML SOURCE and to paste it into the WYSIWYG HTML editor (not into the HTML source, but the layout view) and he gets what he wants.

This is so trivial that it will never appear as "feature of the HTML editor".

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
use node.js to convert JavaScript JSON array to xml 2 102
VB.Net and XML XSD Files 1 54
SharePoint 2013 Blog Template 2 37
microsoft access - xml 10 58
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API ( has made its way into the popular lexicon of the English language.  A few years ago, …
Sending a Secure fax is easy with eFax Corporate ( First, just open a new email message. In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now