xml to html
-
Hi, Just have set of around 100 xml files that need to be displayed on HTML. Each file consists of same 40 elements and then sub elements as well. While looking for the best way to display the xml in html - i found w3s solution i.e. http://www.w3schools.com/xml/xml_to_html.asp[^] But this process is quite cumbersome. I mean, if i go with this process, I have to enter all the elelments and sub elements name and then only i can get that to display my xml in html. Is there any other way, that can read the xml file itself and display each elements and sub elements in html ?? Thanks Andyyy
-
Hi, Just have set of around 100 xml files that need to be displayed on HTML. Each file consists of same 40 elements and then sub elements as well. While looking for the best way to display the xml in html - i found w3s solution i.e. http://www.w3schools.com/xml/xml_to_html.asp[^] But this process is quite cumbersome. I mean, if i go with this process, I have to enter all the elelments and sub elements name and then only i can get that to display my xml in html. Is there any other way, that can read the xml file itself and display each elements and sub elements in html ?? Thanks Andyyy
You might want to look into using XSLT for translating your XML into something HTML friendly.
-
Hi, Just have set of around 100 xml files that need to be displayed on HTML. Each file consists of same 40 elements and then sub elements as well. While looking for the best way to display the xml in html - i found w3s solution i.e. http://www.w3schools.com/xml/xml_to_html.asp[^] But this process is quite cumbersome. I mean, if i go with this process, I have to enter all the elelments and sub elements name and then only i can get that to display my xml in html. Is there any other way, that can read the xml file itself and display each elements and sub elements in html ?? Thanks Andyyy
yes, php has a new (to me) class you can read about it here. http://www.php.net/manual/en/class.domdocument.php[^] I found it very easy to use on html sources. But if you look in the comments you will see some examples of how xml to html can be done.
Chris J www.redash.org
-
Hi, Just have set of around 100 xml files that need to be displayed on HTML. Each file consists of same 40 elements and then sub elements as well. While looking for the best way to display the xml in html - i found w3s solution i.e. http://www.w3schools.com/xml/xml_to_html.asp[^] But this process is quite cumbersome. I mean, if i go with this process, I have to enter all the elelments and sub elements name and then only i can get that to display my xml in html. Is there any other way, that can read the xml file itself and display each elements and sub elements in html ?? Thanks Andyyy