473,549 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying XML-File in Webbrowser Control

I have just created a Word document, saved it as XML-file.
Now I have created a WebBrowser-Control and would like to use it to
display the file, but how?
Could anyone give me some clues on how to do this?

Thanks in anticipation,
Stropher

Jan 31 '06 #1
3 13882

"Stropher" <hm***@gmx.ne t> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I have just created a Word document, saved it as XML-file.
Now I have created a WebBrowser-Control and would like to use it to
display the file, but how?
Could anyone give me some clues on how to do this?


XML is not a display format.

The XML written by word can only be displayed (like a word doc) by word so
one way of acheiving your goal is to embed word in your form instead of a
webbrowser.

In principle you could create a style sheet (xslt) to convert it to HTML but
it would be v. hard work (is the XML "applicatio n" documented?)

The simplest way is just to save the file as HTML

[caveats: I really only know about XML/HTML/XSLT; I haven't got the latest
version of word; I'm not an expert on OLE]
Jan 31 '06 #2
Thanks Nick for the quick answer..
I tried it this way
webBrowser1.Nav igate(@"C:\temp \document.xml") ;
and it worked fine...

regards,
stropher

Jan 31 '06 #3

"Stropher" <hm***@gmx.ne t> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Thanks Nick for the quick answer..
I tried it this way
webBrowser1.Nav igate(@"C:\temp \document.xml") ;
and it worked fine...

regards,
stropher


I'm curious - this should just show the nested XML structure rather than a
pretty document unless the xml already references a stylsheet.

Jan 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3378
by: mr_burns | last post by:
hi, i have found an xml source intended for supplying news titles to web sites. the url is: http://news.bbc.co.uk/rss/newsonline_uk_edition/technology/rss091.xml i would like to use the data contained within xml page and place it on a html page.
4
1633
by: El Durango | last post by:
Hi I have a simple CGI program that takes data from a data source and posts it as XML format on the browser, I have tested my program on IE and Mozilla and they behave differently. Sometimes XML format is displayed sometimes just the data is displayed excluding the elements. Here is a snippet of my code that displays the data: sub...
5
3084
by: Jelks Cabaniss | last post by:
I asked this in two of the Opera newsgroups, but except for one person who advised me to just use namespaced HTML elements in my XML, there were no replies. Has anybody here successfully used Opera's CSS extension "-o-replace" to display images in generic XML? See below: --------- Opera has some nice (in theory) CSS extension to...
1
1086
by: stotty | last post by:
I have a string which contains an xml document in my app. Does anyone know of an easy way to display XML data in a browser, with nice indentations between nodes, and maybe even the +/- controls that IE uses when displaying XML? Matt
3
1556
by: Bernardo Gomes | last post by:
Hi all, I´m having trouble doing the following: I have a aspx page without any html in it, and, in the Page_Load, I call a component that returns me a XML, that I have to display in the browser. I do that by using: response.write(xml.innerxml) --> Works perfectly ( the browser shows me the xml But, if I try to use a xls to transform it, like...
12
2320
by: korund | last post by:
How to make javascript alert with non-english text displaying correctly on computers where english only is default system & language settings? For web page the solution is just use meta tags: <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> Will this work for javascript alerts also?
2
1085
by: jbmorla | last post by:
Hi, I just posted this in the php forum, I have the feeling that my error is due to my Wamp 5 settings: I'm a newbie in XML/XSLT trying to get some HTML output from a simple XML source that starts with: QUOTE: <?xml version="1.0"?>
1
1394
by: b ramgopal goud | last post by:
Any body can please help me ??? With IE6 browser and hhtps, "xml" pages are not displaying , But in http why
0
1119
by: crow | last post by:
Hi, i've never worked with oracle before and i have a trouble with displaying blobs.I create a table of xml type or one that has a column of xml type and every time i select to view the contents i get an error message(Oracle cannot display tables of blob type...etc).What can i do to view the xml column or the table?Oracle's help is not sufficient!...
2
2643
by: nicky123 | last post by:
Hi everyone, This is a brief description that I have provided for parsing & displaying an XML document using DOM API. Please feel free to post your own comments & views regarding this discussion. Thank you. The first step of parsing an XML document is to import the DOM API related classes such as :- java.io.* which...
0
7450
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.