<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Import function XML DOM not string</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/import-function-xml-dom-not-string</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/import-function-xml-dom-not-string/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Mike54 on Import function XML DOM not string</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/import-function-xml-dom-not-string#p20364</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/import-function-xml-dom-not-string#p20364</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have tried to import XML using "built in" AJAX import and it works as expected.</p>
<p>In my situation I need to get the XML using my AJAX call, modify the XML file and than pass it to jqGrid.</p>
<p>In this case I have to use "xmlstring" option and I have to serialize my XML. What import function does, it creates DOM out of it.</p>
<p>I would love to see "xmldom" import option so that I could use code as follows:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5843' value='Select Code' data-codeid='sfcode5843' /></p>
<div class='sfcode' id='sfcode5843'>
<p>$.ajax({</p>
<p>type: &#34;GET&#34;,</p>
<p>url: &#34;grid_source.xml&#34;,</p>
<p><strong>&#160;dataType: &#34;xml&#34;,</strong></p>
<p>success: function(<strong>xmlData</strong>){</p>
<p>//perform some operations on xmlData [object Document]</p>
<p>$(&#34;#grid1&#34;).jqGrid(&#39;jqGridImport&#39;,</p>
<p>{</p>
<p>imptype: &#39;<strong>xmlstring</strong>&#39;,</p>
<p>impstring: <strong>xmlData</strong></p>
<p>});</p>
<p>}</p>
<p>});</p>
<p>});</p>
</div>
<p>This fails as it will accept only plain xml string.</p>
<p>Am I correct or am I doing something completely weird? 🙂</p>
</p>
<p>Thanks for any input/suggestions.</p>
<p>Mike</p>
]]></description>
        	        	<pubDate>Tue, 19 Oct 2010 18:48:21 +0300</pubDate>
        </item>
</channel>
</rss>