Note that there are some explanatory texts on larger screens.

plurals
  1. POparse xml node child in jquery
    primarykey
    data
    text
    <p>I have the following XML: </p> <pre><code>&lt;item p4:stage="Ways and Means resolution" xmlns:p4="urn:services.parliament.uk-bills.ext"&gt;&lt;guid isPermaLink="true"&gt;http://services.parliament.uk/bills/2013-14/antisocialbehaviourcrimeandpolicingbill.html&lt;/guid&gt;&lt;link&gt;http://services.parliament.uk/bills/2013-14/antisocialbehaviourcrimeandpolicingbill.html&lt;/link&gt;&lt;category&gt;Commons&lt;/category&gt;&lt;category&gt;Government Bill&lt;/category&gt;&lt;title&gt;Anti-social Behaviour, Crime and Policing&lt;/title&gt;&lt;description&gt;To make provision about anti-social behaviour, crime and disorder, including provision about recovery of possession of dwelling houses; to make provision amending the Dangerous Dogs Act 1991, Schedules 7 and 8 to the Terrorism Act 2000 and the Extradition Act 2003; to make provision about firearms and about forced marriage; to make provision about the police, the IndependentPolice Complaints Commission and the Serious Fraud Office; to make provision about criminal justice and court fees; and for connected purposes.&lt;/description&gt;&lt;a10:updated&gt;2013-06-05T17:42:59+01:00&lt;/a10:updated&gt;&lt;/item&gt; </code></pre> <p>I can parse all thats within <code>&lt;item&gt;&lt;/item&gt;</code> using this:</p> <pre><code>$(xml).find('item').each(function() { var stage = $(this).find('title').text(); console.log(stage); }); </code></pre> <p>But I am looking at whats inside :</p> <pre><code>&lt;item....&gt; for example, </code></pre> <p>I need to pull whats inside:</p> <pre><code> &lt;p4:stage&gt;&lt;/p4:stage&gt; </code></pre> <p>How do I pull this out ?</p> <p>Thank you in advance</p>
    singulars
    1. This table or related slice is empty.
    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.
    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