|
| |
User Groups : Forums : SiteExperts :
XML Technologies
:  | HTML code in XML
Hi all, I have an XML file as follows:
<?xml version="1.0"?> <planets> <planet> <Name>Mercury</Name> <info> <table> <tr> <td>Smallest Planet</td> <td>Closest to Sun</td> </tr> </table> </info> </planet>
<planet> <Name>Earth</Name> <info> This is the planet we all live on </info> </planet> </planets>
There is no particular pattern in info field. But whatever is given as the value of info, will be in html.
Is there a way to use XSL and generate the following html code...
<html> <head> Planets </head> <body> <h1>Mercury</h1> <table> <tr> <td>Smallest Planet</td> <td>Closest to Sun</td> </tr> </table> <h1>Earth</h1> This is the planet we all live on </body> </html>
Can some body help me with this? I need to get the content/value of <info> as it is (even though it is html) and put it in the resultant html file using XSL.
Thanks, Neelima
Started By Neelimaa on May 4, 2006 at 4:11:03 AM This message has been edited. |  | | 1 Response(s) | Reply |
| Earlier Replies | Replies 1 to 1 of 1 | Later Replies |  | | Monte on May 4, 2006 at 6:38:37 AM (# 1) In your XML, <table>, <tr>, and <td> are NOT what you think they are. They are elements of XML, not defined as the structure of a table.
Read
So you may need to revise your XML. Also, you should check out XSLT.
Read
Google can be your friend...
| | Earlier Replies | Replies 1 to 1 of 1 | Later Replies |
To respond to a discussion, you must first logon.
If you are not registered, please register yourself to become a member of the SiteExperts.community.
|