Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to parse only specific tag values?
    text
    copied!<p>I want to parse only <code>Margherita</code> tag-related values. It is possible to parse tag-related values?</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;menu&gt; &lt;item&gt; &lt;id&gt;1&lt;/id&gt; &lt;name&gt;Margherita&lt;/name&gt; &lt;cost&gt;155&lt;/cost&gt; &lt;description&gt;Single cheese topping&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;6&lt;/id&gt; &lt;name&gt;Margherita&lt;/name&gt; &lt;cost&gt;155&lt;/cost&gt; &lt;description&gt;Single cheese topping&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;8&lt;/id&gt; &lt;name&gt;Margherita&lt;/name&gt; &lt;cost&gt;1535&lt;/cost&gt; &lt;description&gt;Single cheese topping&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;2&lt;/id&gt; &lt;name&gt;Double Cheese Margherita&lt;/name&gt; &lt;cost&gt;22e5&lt;/cost&gt; &lt;description&gt;Loaded with Extra Cheese&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;3&lt;/id&gt; &lt;name&gt;Fresh Veggie&lt;/name&gt; &lt;cost&gt;110&lt;/cost&gt; &lt;description&gt;Oninon and Crisp capsicum&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;4&lt;/id&gt; &lt;name&gt;Peppy Paneer&lt;/name&gt; &lt;cost&gt;155&lt;/cost&gt; &lt;description&gt;Paneer, Crisp capsicum and Red pepper&lt;/description&gt; &lt;/item&gt; &lt;item&gt; &lt;id&gt;5&lt;/id&gt; &lt;name&gt;Mexican Green Wave&lt;/name&gt; &lt;cost&gt;445&lt;/cost&gt; &lt;description&gt;Onion, Crip capsicum, Tomato with mexican herb&lt;/description&gt; &lt;/item&gt; &lt;/menu&gt; </code></pre> <p>In the above XML, I want to show only values related to the <code>Margherita</code> tags. It this possible? If so, how?</p>
 

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