Hello ,
I am very new to XML . Please can any one , inform me how to save an XML file ?
(i.e with what extension).
Thanks in advance
Bsic XML
Moderator: General Moderators
Re: Bsic XML
save as .xml
-
littlecoder
- Forum Commoner
- Posts: 26
- Joined: Fri Oct 17, 2008 4:36 am
Re: Bsic XML
Hi ,
Thanks ,
I also want to read the XML data through javascript . My XML file name is first.xml .
My html code is :
<html>
<body>
<script langauge = "text/javascript">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load('first.xml');
xmlObj=xmlDoc.documentElement;
alert(xmlObj.xml);
</script>
</body>
</html>
But i am not getting any output . What will be the problem ?
Thanks ,
I also want to read the XML data through javascript . My XML file name is first.xml .
My html code is :
<html>
<body>
<script langauge = "text/javascript">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load('first.xml');
xmlObj=xmlDoc.documentElement;
alert(xmlObj.xml);
</script>
</body>
</html>
But i am not getting any output . What will be the problem ?
Re: Bsic XML
I'm no js expert but try printing it out on the page instead of using the alert.
And write a legal html document
And write a legal html document