Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I parse this xml using GDataXML parser?
    primarykey
    data
    text
    <pre><code>&lt;list&gt; &lt;OrderData HASH="1408108039"&gt;&lt;/OrderData&gt; &lt;OrderData HASH="208524692"&gt; &lt;id&gt;97&lt;/id&gt; &lt;customer&gt; &lt;CustomerData HASH="2128670187"&gt;&lt;/CustomerData&gt;&lt;/customer&gt; &lt;billingAddress&gt;&lt;/billingAddress&gt;&lt;deliveryAddress&gt;&lt;/deliveryAddress&gt; &lt;orderDetail&gt; &lt;list&gt; &lt;OrderDetailData HASH="516790072"&gt;&lt;/OrderDetailData&gt; &lt;OrderDetailData HASH="11226247"&gt;&lt;/OrderDetailData&gt; &lt;OrderDetailData HASH="11226247"&gt;&lt;/OrderDetailData&gt; &lt;/list&gt; &lt;/orderDetail&gt; &lt;log/&gt; &lt;/OrderData&gt; &lt;OrderData HASH="1502226778"&gt;&lt;/OrderData&gt; &lt;/list&gt; </code></pre> <p>I cannot find a solution to find the number of <code>OrderDetailData</code> elements? I also read <a href="http://iphonebyradix.blogspot.com/2011/03/using-gdata-to-parse-xml-file.html" rel="nofollow">http://iphonebyradix.blogspot.com/2011/03/using-gdata-to-parse-xml-file.html</a> this url.</p> <p>Thanks in advance.</p> <p><strong>Edit:</strong> </p> <p>I am explaining my requirement again. In this xml there will be multiple <code>OrderData</code> element. Now I have to count the number of <code>OrderDetailData</code> elemnts from a particular <code>OrderData</code> element. Suppose that, according to my xml, the current parsed xml has one <code>OrderData</code> element, named <code>id</code> and its value is 97. Now, I have to count how many <code>OrderDetailData</code> elements are contained in the OrderData<code>(which</code>id` is 97). </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload