PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Show XML content like Microsoft activex web browser
Show XML content like Microsoft activex web browser
Iniciado por guest, 20,jun. 2016 11:21 - 3 respuestas
Publicado el 20,junio 2016 - 11:21
Hi,

in one of my applications I use the activex control together with the 'Microsoft web browser' activex to show the contents of an XML file.
Now I get questions about how secure activex is and it is seen as an old technology and so on. Well I agree with that.

Is there another way to show XML content in a formatted way, preferably in a way where I only have to replace the ONE line of code I have now?
MyActivexBrowser>>Navigate(sXmlFile)
Publicado el 20,junio 2016 - 15:13
HI,

Just display it in a browser

regards
Allard
Publicado el 21,junio 2016 - 15:42
Yea to get xml to display properly just make sure you pass the correct mime type for xml. You can test the following types to see which one works best for you:

application/xhtml+xml
text/xml
application/xml


Cheers!
ken
Publicado el 21,junio 2016 - 15:50
Allard, Ken,

tnxs but what I want is to display the content in a window in my application. Not open several explorer sessions.

On the left I have a list of files, when the user clicks on it he/she will see the content on the right. For now it is a axtivex control but I would like to have a regular edit-control.

Maybe someone already built a small xml-layout-class to show XML in a rtf control or multiline edit control?