Loading ...
Sorry, an error occurred while loading the content.

11626Problem with responseXML.documentElement on IE.

Expand Messages
  • ---
    Apr 1, 2007
      Hi, I are new here.

      Working with some features of YUI I found a problem.

      I want to process a XML generated by php, some one like this.

      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <applications>
      <all>
      <name>All programs</name>
      <link>all_programs</link>
      <name>Recent programs</name>
      <link>recent_programs</link>
      <name>Recent Documents</name>
      <link>recent_documents</link>
      <name>Opened</name>

      <link>opened</link>
      </all>
      </applications>


      when I do it:


      function successHandler(o){
      var root = o.responseXML.documentElement;
      var appName = root.getElementsByTagName('name');

      alert(appName);
      }


      The messages on Opera and Mozilla show [object HTMLColletcion], thats
      right, but on IE 6.0 the message show NULL.

      Any idea to make it work??

      Really thanks.
    • Show all 8 messages in this topic