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

44690Re: [ydn-javascript] how can we set the responseSchema object for complicated xml? (XHRDataSource)

Expand Messages
  • Satyam
    Feb 4, 2009
      I am not sure what is it you want to extract. If you want all the id
      values from any element, the DataSource cannot do that. You might have
      to use Connection Manager's asyncRequest and extract the data yourself.

      Satyam


      zedan_gu wrote:
      > I use XHRDataSource to get my remote data, but the returned xml like
      > below:
      > <?xml version="1.0" encoding="UTF-8"?>
      > <root>
      > <a><aa id="1"/><aa id="2"/></a>
      > <b><bb id="1"/><bb id="2"/></b>
      > <c><cc id="1"><ccc id="1"/><ccc id="2"/>
      > <cc id="2"/><ccc id="3"/><ccc id="4"/>
      > </c>
      > </root>
      >
      > if we want to get the node named aa, we can set resultNode="aa";
      > field=[{key:"id}]. But if we want to get all the xml data, how can we
      > set the responseSchema object ?
      >
      > thx.
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - www.avg.com
      > Version: 8.0.233 / Virus Database: 270.10.17/1933 - Release Date: 02/02/09 19:21:00
      >
      >
    • Show all 3 messages in this topic