473,544 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display XML

I would like to display XML on my website, I want it to look/behave like an
XML document looks when loaded into IE directly. I was hoping that I could
find an XSL document somewhere on my computer that is the same one IE uses
when displaying XML, but it doesn't look like there is one :-(

I cannot just dump the XML to the browser, because there are other elements
on the page.

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?
Thanks in Advance

Steve
Nov 19 '05 #1
6 1311
just open the XML file then in the browser. I forget the code to do it but
its pretty plain
"Steve Lutz" wrote:
I would like to display XML on my website, I want it to look/behave like an
XML document looks when loaded into IE directly. I was hoping that I could
find an XSL document somewhere on my computer that is the same one IE uses
when displaying XML, but it doesn't look like there is one :-(

I cannot just dump the XML to the browser, because there are other elements
on the page.

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?
Thanks in Advance

Steve

Nov 19 '05 #2
Steve Lutz wrote:
I would like to display XML on my website, I want it to look/behave
like an XML document looks when loaded into IE directly. I was
hoping that I could find an XSL document somewhere on my computer
that is the same one IE uses when displaying XML, but it doesn't look
like there is one :-(

I cannot just dump the XML to the browser, because there are other
elements on the page.

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?
Thanks in Advance

Steve


You could put an iframe on the page, with the src pointing to the xml file.

Hans Kesting
Nov 19 '05 #3
Mike wrote:
just open the XML file then in the browser. I forget the code to do
it but its pretty plain


But what if you want to display that xml within a nice page? The automatic
formatting only works if the entire document is one xml, not if it is part
of a regular page.

Hans Kesting

Nov 19 '05 #4
if you want the XML to look "prett" then use XSLT, but this he said he
wanted it to look/behave like an
XML document looks when loaded into IE directly

"Hans Kesting" wrote:
Mike wrote:
just open the XML file then in the browser. I forget the code to do
it but its pretty plain


But what if you want to display that xml within a nice page? The automatic
formatting only works if the entire document is one xml, not if it is part
of a regular page.

Hans Kesting

Nov 19 '05 #5
Use an <asp:xml> control, and surround it with <pre> tags?

"Steve Lutz" <sl***@NO.highb eam.SPAM.com> wrote in message
news:eq******** ******@tk2msftn gp13.phx.gbl...
I would like to display XML on my website, I want it to look/behave like an XML document looks when loaded into IE directly. I was hoping that I could find an XSL document somewhere on my computer that is the same one IE uses
when displaying XML, but it doesn't look like there is one :-(

I cannot just dump the XML to the browser, because there are other elements on the page.

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?
Thanks in Advance

Steve

Nov 19 '05 #6
Mike and Hans

The page has other HTML elements in it, in addition to the XML. That is why
I cannot just dump the XML to the browser as an XML file. Plus, firefox for
example does not display the XML as nicely as IE does. I don't want to write
up an entire XSL for this, I was hoping someone knew the XSL files that IE
uses.
Since the XML I'm outputting is debugging information, I didn't want to put
a lot of time into it either, but the QA folks would sure appreciate the IE
style raw XML display/interaction instead of trying to look through a string
of unformatted XML.


"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:A1******** *************** ***********@mic rosoft.com...
if you want the XML to look "prett" then use XSLT, but this he said he
wanted it to look/behave like an
XML document looks when loaded into IE directly

"Hans Kesting" wrote:
Mike wrote:
just open the XML file then in the browser. I forget the code to do
it but its pretty plain


But what if you want to display that xml within a nice page? The automatic formatting only works if the entire document is one xml, not if it is part of a regular page.

Hans Kesting

Nov 19 '05 #7

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

Similar topics

3
2150
by: StepH | last post by:
Hi, I'm building a little application, which the goal is to: 1./ Collect data via Serial line and or via a file (for playback). 2./ Display these data as graph, oscilloscope, ... How manage this ? 1./ Is each "display" must responsible to acquire/read the data ?
1
2664
by: FrankBooth | last post by:
Hello, I have a list of names, and when I click ona name I want the extar info to show and then I want to clcik and hide it again. I have the following HTML which works perfectly if I use one construct, but if I use more that one it issues an object error which states that: ExpCollTxt_ctrl_ex.style is not an object. So the followin...
23
3128
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H 0H0</p> <p class="Telephone">Telephone: 555-1234 </p> <p class="Fax">Fax: 555-4321</p> </div>
3
10238
by: shreddie | last post by:
Could anyone assist with the following problem? I'm using JavaScript to hide/show table rows depending on the option selected in radio buttons. The script works fine in IE but in Firefox the hidden rows take up page space even though their content is not visible. I have extracted the necessary code as shown below: ...
1
3551
by: Tristan Miller | last post by:
Greetings. I am trying to write a function which toggles the display of a certain class of <div> elements in an HTML page. The CSS file initially sets some classes to "display: none", and others to "display: block". The problem I am encountering is that when the JavaScript interpreter starts up initially, all style.displays are null. ...
7
6050
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is there any other way to display/undisplay parts of web pages? TIA
0
1887
by: Ferry Boender | last post by:
Hi, I'm relatively new to Xlib programming, and I ran into a little problem. I'm trying to insert keypress events into a X window. The following code works: --8<------------------------------------------------------------ #!/usr/bin/python
1
9013
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working with Firefox browser. The firefox browser has problem to display a field after its style.display is reset. At the end of the JS function, I...
1
4516
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the...
15
3132
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out, of course). <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
0
7414
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7359
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
7598
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7757
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7699
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...
1
5288
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
4905
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...
1
1833
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
0
651
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.