![]() |
convert xml to html
hi guys.. i need some help here... can someone tell mi how could i publish xml formated documents to html formated documents?? thanks ..
|
Well, it all depends. XML is just structured data - the XML tags have no specific meaning - their meaning is what you make it out to be. You can read the data and transform it using technologies such as XSLT, or SAX parsers or the DOM. Here's a quick example using Python and minidom, that transforms a simple piece of XML into a HTML document:
XML file (xmlpage.xml): :
<page>Python script: :
import sysOutput: :
<html> |
hmmm thanks man.. i dont quite know what is python script. could you tell me? thanks in advance.
|
Hm, I think you may be over-shooting your mark in your attempt of this, with no programming knowledge.
Possibly look into a system that does this for you? |
|
actually i new to programming. this is a assignment so i have no choice. but anyway thanks guys. i'll do the research. thanks for the help again.
|
Do you know C++. There is something on www.sourceforge.net called TinyXML. I have downloaded it but I haven't used it.
|
| All times are GMT -5. The time now is 2:15 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC