siddhant
10-18-2008, 12:38 PM
Hello all.
I am using the xml2array (http://www.openjs.com/scripts/xml_parser/) script to parse some xml. The problem is, that everything works perfectly when I test it using this page -- http://www.squarefree.com/shell/shell.html , but the behavior changes when I use it in localhost. I'm using Firefox 3.0.3.
For instance, for a simple XML like this --
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><int>3485</int></value>
</param>
</params>
</methodResponse>
output inside the JavaScript shell I mentioned before is 3485 (output['int']) , but the same expression (output['int']) evaluates to "methodResponse" while using in localhost. I've tried using different expressions to extract out the value, with no success so far. :(
Any help? Thanks a lot.
I am using the xml2array (http://www.openjs.com/scripts/xml_parser/) script to parse some xml. The problem is, that everything works perfectly when I test it using this page -- http://www.squarefree.com/shell/shell.html , but the behavior changes when I use it in localhost. I'm using Firefox 3.0.3.
For instance, for a simple XML like this --
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><int>3485</int></value>
</param>
</params>
</methodResponse>
output inside the JavaScript shell I mentioned before is 3485 (output['int']) , but the same expression (output['int']) evaluates to "methodResponse" while using in localhost. I've tried using different expressions to extract out the value, with no success so far. :(
Any help? Thanks a lot.