Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using document.XMLDocument in Mozilla

 
Harjot Narula
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to port an XSL written for IE6 to Mozilla 1.4
Mozilla does not support document.XMLDocument
I need an equivalent of document.XMLDocument in Mozilla and probably other document.<properties......>
Any kind of help is appreciated.
Thanks
Harjot Narula
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can display XML directly in web format(html) by in-refering the xsl like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?>
<catalog>
.
.
.
.
</catalog>
This helps you to keep your xml display platform neutral..
more info here => http://www.w3schools.com/xsl/xsl_transformation.asp
IS that what you want ??
 
Harjot Narula
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really,
I AM ALREADY loading the XML in the way you suggested. I actually require a reference to the XML object of the loaded XML in Mozilla, so that I can traverse its nodes via javascript.
In IE, document.XMLDocument returns me a refernece this object. Is there any way for me to do it in Mozilla?
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic