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

21380Re: Problem with responseXML.documentElement on IE.

Expand Messages
  • plamen_gurov
    Nov 24, 2007
      I have similar problems in both IE and FireFox after several hours
      research I opted for responseText and RegExp parsing.

      --- In ydn-javascript@yahoogroups.com, "---" <odiel@...> wrote:
      >
      > 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