Click to See Complete Forum and Search --> : browser support for xml


sharma-kapil
August 23rd, 2000, 06:06 PM
I typed the following lines in notepad(I have omiited angular brackets around tags) and saved the file as a.xml. Then I opened the file in iexplorer 5.0 and Mozilla. Any guesses what they will show(rem that I have specfied no headers in file to specify that this is a xml file)?

codeguru
post
msg1 Who is kapil? /msg1
msg2 This may seem funny.../msg2
/post
/codeguru

Ans: 1) iexplorer shows the same lines but after some formatting in a tree form.
2) Mozilla displays "Who is kapil? This may seem funny...".

Does somebody have any idea what these browsers ar e doing?


~ ks

Lothar Haensler
August 24th, 2000, 03:00 AM
what did you expect?
I think it's a nice feature, that IE 5 shows the structure of an XML document in a colored tree layout.

If you want to display your data in a different form use XSL to format your XML data in HTML format.
...or use CSS to format your XML tags.

sharma-kapil
August 24th, 2000, 01:52 PM
But actually I don't like the varying beahviour for same data thats why.

~ ks