Note that there are some explanatory texts on larger screens.

plurals
  1. POparsing xml with jquery
    primarykey
    data
    text
    <p>I am querying the Microsoft Office SharePoint Server Search Service to write some results into a web part. I have the query working correctly but am having some trouble parsing the xml response via JQuery.</p> <p>Below is the XML response :</p> <pre><code>&lt;document&gt; &lt;properties&gt; &lt;Property&gt; &lt;Name&gt;p1&lt;/Name&gt; &lt;Type&gt;String&lt;/Type&gt; &lt;Value&gt;blue&lt;/Value&gt; &lt;/Property&gt; &lt;Property&gt; &lt;Name&gt;title&lt;/Name&gt; &lt;Type&gt;string&lt;/Type&gt; &lt;Value&gt;titreA&lt;/Value&gt; &lt;/Property&gt; &lt;/properties&gt; &lt;/document&gt; &lt;document&gt; &lt;properties&gt; &lt;Property&gt; &lt;Name&gt;p1&lt;/Name&gt; &lt;Type&gt;String&lt;/Type&gt; &lt;Value&gt;blue&lt;/Value&gt; &lt;/Property&gt; &lt;Property&gt; &lt;Name&gt;title&lt;/Name&gt; &lt;Type&gt;string&lt;/Type&gt; &lt;Value&gt;titreB&lt;/Value&gt; &lt;/Property&gt; &lt;/properties&gt; &lt;/document&gt; &lt;document&gt; &lt;properties&gt; &lt;Property&gt; &lt;Name&gt;p1&lt;/Name&gt; &lt;Type&gt;String&lt;/Type&gt; &lt;Value&gt;green&lt;/Value&gt; &lt;/Property&gt; &lt;Property&gt; &lt;Name&gt;title&lt;/Name&gt; &lt;Type&gt;string&lt;/Type&gt; &lt;Value&gt;titreC&lt;/Value&gt; &lt;/Property&gt; &lt;/properties&gt; &lt;/document&gt; &lt;document&gt; &lt;properties&gt; &lt;Property&gt; &lt;Name&gt;p1&lt;/Name&gt; &lt;Type&gt;String&lt;/Type&gt; &lt;Value&gt;red&lt;/Value&gt; &lt;/Property&gt; &lt;Property&gt; &lt;Name&gt;title&lt;/Name&gt; &lt;Type&gt;string&lt;/Type&gt; &lt;Value&gt;titreD&lt;/Value&gt; &lt;/Property&gt; &lt;/properties&gt; &lt;/document&gt; </code></pre> <p>How can i retrieve p1 value, and number of occurence of this value ? Like this : blue(2), green(1), red(1)</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