Results 1 to 1 of 1
Thread: plz help
- 12-28-2008, 11:09 AM #1
Member
- Join Date
- Jul 2008
- Location
- india
- Posts
- 35
- Rep Power
- 0
plz help
hi!!
plz help me out.........
i have a problem in xmldoc.load function...
following is my code...
function parseXML(t1)
{
try
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
catch(e)
{
try
{
xmlDoc=document.implementation.createDocument(""," ",null);
}
catch(e)
{
alert(e.message);
return;
}
}
xmlDoc.async=false;
xmlDoc.load("mytext1.xml");
var x=xmlDoc.documentElement.childNodes;
for (var i=0;i<x.length;i++)
{
if (x[i].nodeType==1)
{
//Process only element(nodeType 1) nodes
t1[i]="NODENAME="+x[i].nodeName + ": ";
// document.write("t1="+t1[i]);
// document.write("value="+xmlDoc.getElementsByTagNam e(x[i].nodeName)[0].childNodes[0].nodeValue);
var y=xmlDoc.getElementsByTagName(t1)[0].childNodes[0].nodeValue;
// document.write("y="+y);
this is working fine as a standalone application..bt wen it is bundled with several other files as a ear file and deployed on server.. it is not working.. i mean xmldoc.load function does not load that xml file at all... any solution...


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks