how to render XML for netscape????
-
:confused::(hi all, I am new to this forum..but not new to CP..can anyone of you help me out..I have an XML document and I parsed it to get the data..and show it in in IE 5.0 but the same thing doesnt work in Netscape..I am having Netscape 6.1...I am using Javascript to render XML..Any help or pointers are welcome..Please help.. thanks in advance.. Cheers Himanshu
-
:confused::(hi all, I am new to this forum..but not new to CP..can anyone of you help me out..I have an XML document and I parsed it to get the data..and show it in in IE 5.0 but the same thing doesnt work in Netscape..I am having Netscape 6.1...I am using Javascript to render XML..Any help or pointers are welcome..Please help.. thanks in advance.. Cheers Himanshu
Post the code please xxhimanshu, then we can help. Just saying "using Javascript to render" does not help us much.
Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.
-
Post the code please xxhimanshu, then we can help. Just saying "using Javascript to render" does not help us much.
Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.
hi, i cannot understand what code.. the code that i used does well in IE..and does everything I want to do..and the way i want to...but I want to know as I am creating a DOM for microsoft as new ActiveXObject("Msxml2.DOMDocument.3.0");...and also some other things which work fine in IE doesnt work in NETSCAPE..as document.all doesnt work..whatever I have searched for and found was like that..I will have to use XSL Stylesheets..to render XML and show it in Netscape.....but I am having a problem..I dont have a static XML file...so I cant create a XSL which is dynamic...so is there any other way to do it..as we do in Microsoft Internet Explorer..any hints and ideas are welcome..please help!!!!!!!!! TIA... himanshu
-
hi, i cannot understand what code.. the code that i used does well in IE..and does everything I want to do..and the way i want to...but I want to know as I am creating a DOM for microsoft as new ActiveXObject("Msxml2.DOMDocument.3.0");...and also some other things which work fine in IE doesnt work in NETSCAPE..as document.all doesnt work..whatever I have searched for and found was like that..I will have to use XSL Stylesheets..to render XML and show it in Netscape.....but I am having a problem..I dont have a static XML file...so I cant create a XSL which is dynamic...so is there any other way to do it..as we do in Microsoft Internet Explorer..any hints and ideas are welcome..please help!!!!!!!!! TIA... himanshu
The code I meant was your code which is giving the problem on Netscape. If you can post that code then maybe we can help you out. From what I can gather though I recommend you ditch the client side processing and do it all server side. It is perfectly possible to apply an XSL transform to a dynamic XML source. The best way is to have an ASPX (or ASP page) which creates an
XmlDocument
andXslTransform
. you then load up the XmlDocument with your dynamic XML (in .NET it can take in streams or physical files) and Response.Write out the XslTransform output.Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.
-
The code I meant was your code which is giving the problem on Netscape. If you can post that code then maybe we can help you out. From what I can gather though I recommend you ditch the client side processing and do it all server side. It is perfectly possible to apply an XSL transform to a dynamic XML source. The best way is to have an ASPX (or ASP page) which creates an
XmlDocument
andXslTransform
. you then load up the XmlDocument with your dynamic XML (in .NET it can take in streams or physical files) and Response.Write out the XslTransform output.Paul Watson
Bluegrass
Cape Town, South AfricaMacbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.
I did it for IE..ad it is working fine..but the same program doesnt give any output in netscape..that is because netscape doesnt support some of the methods..so there is no other way..than to write a new approach which either can work fine in both..IE and netscape..or write routines for netscape and IE...but I dont know the idea as how to start with...can you help me out.. cheers Himanshu
-
I did it for IE..ad it is working fine..but the same program doesnt give any output in netscape..that is because netscape doesnt support some of the methods..so there is no other way..than to write a new approach which either can work fine in both..IE and netscape..or write routines for netscape and IE...but I dont know the idea as how to start with...can you help me out.. cheers Himanshu
you have to do this using server-side code. client side code is not a good idea as you will face the problems that you have now. you need to write this in code that executes on the webserver, so either asp or asp.net depending on which one you know.
"When the only tool you have is a hammer, a sore thumb you will have."