Note that there are some explanatory texts on larger screens.

plurals
  1. POParse XML into a string using javascript or jquery
    primarykey
    data
    text
    <p>I need to parse a XML into a string based on user's search input using Javascript or Jquery.</p> <p>XML is located at rssfeed.ucoz.com/rssfeed.xml Too large to place here.</p> <p>Example:</p> <p>Original XML</p> <pre><code>&lt;item&gt; &lt;title&gt;Abyssal Warder fire&lt;/title&gt; &lt;guid isPermaLink="false"&gt;//lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/Abyssal%20Warder%20fire.jpg&lt;/guid&gt; &lt;media:description&gt;Giant Destroyer&lt;/media:description&gt; &lt;media:thumbnail url="http://lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/s144/Abyssal%20Warder%20fire.jpg" /&gt; &lt;media:group&gt; &lt;media:content url="http://lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/Abyssal%20Warder%20fire.jpg" /&gt; &lt;media:content isDefault="true" width="685" height="295" url="http://rssfeed.ucoz.com/Battleforge.html" type="text/html" /&gt; &lt;/media:group&gt; &lt;/item&gt; &lt;item&gt; &lt;title&gt;Abyssal Warder frost&lt;/title&gt; &lt;guid isPermaLink="false"&gt;//lh4.googleusercontent.com/_qvhVKLFln2A/TU-54ZuHv6I/AAAAAAAAEW8/gtPs25XUjhY/Abyssal%20Warder%20frost.jpg&lt;/guid&gt; &lt;media:description&gt;Giant Destroyer&lt;/media:description&gt; &lt;media:thumbnail url="http://lh4.googleusercontent.com/_qvhVKLFln2A/TU-54ZuHv6I/AAAAAAAAEW8/gtPs25XUjhY/s144/Abyssal%20Warder%20frost.jpg" /&gt; &lt;media:group&gt; &lt;media:content url="http://lh4.googleusercontent.com/_qvhVKLFln2A/TU-54ZuHv6I/AAAAAAAAEW8/gtPs25XUjhY/Abyssal%20Warder%20frost.jpg" /&gt; &lt;media:content isDefault="true" width="685" height="295" url="http://rssfeed.ucoz.com/Battleforge.html" type="text/html" /&gt; &lt;/media:group&gt; &lt;/item&gt; </code></pre> <p>Outcome as string when user search for "Abyssal Warder Fire" or just "Abyssal Fire"</p> <pre><code>&lt;item&gt; &lt;title&gt;Abyssal Warder fire&lt;/title&gt; &lt;guid isPermaLink="false"&gt;//lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/Abyssal%20Warder%20fire.jpg&lt;/guid&gt; &lt;media:description&gt;Giant Destroyer&lt;/media:description&gt; &lt;media:thumbnail url="http://lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/s144/Abyssal%20Warder%20fire.jpg" /&gt; &lt;media:group&gt; &lt;media:content url="http://lh5.googleusercontent.com/_qvhVKLFln2A/TU-51_bGZ9I/AAAAAAAAEW4/uAmzL3e-vn0/Abyssal%20Warder%20fire.jpg" /&gt; &lt;media:content isDefault="true" width="685" height="295" url="http://rssfeed.ucoz.com/Battleforge.html" type="text/html" /&gt; &lt;/media:group&gt; &lt;/item&gt; </code></pre> <p>I've been searching for 5 days in the net, and I couldn't get anything. All the results I see are parsed xml that are shown as HTML, but none as string. I need it as string because I will feed the string it into a web application's api that requires it as a string. Please help, any ideas or code on how to accomplish this would be greatly appreciated. Thanks 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.
 

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