<?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: jqGridImport: importing: 'xml' works fine, but xmlstring fails...?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgridimport-importing-xml-works-fine-but-xmlstring-fails</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/jqgridimport-importing-xml-works-fine-but-xmlstring-fails/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Mike54 on jqGridImport: importing: 'xml' works fine, but xmlstring fails...?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgridimport-importing-xml-works-fine-but-xmlstring-fails#p20408</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgridimport-importing-xml-works-fine-but-xmlstring-fails#p20408</guid>
        	        	<description><![CDATA[<p>Importing XML from file works fine: (the file contains the same data that you can see below for xmlstring import)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit279' value='Select Code' data-codeid='sfcode279' /></p>
<div class='sfcode' id='sfcode279'>$(&#34;#grid2&#34;).jqGrid(&#39;jqGridImport&#39;,<br /> {<br /> impurl:&#34;grid_source_mini.xml&#34;,<br /> imptype: &#39;xml&#39;,	<br /> xmlGrid :{config: &#34;roots&#62;grid&#34;,	data: &#34;roots&#62;rows&#34;}<br /> });</div>
</p>
<p>When I want to use the same data with "xmlstring" import, nothing happens or I get</p>
<p>Uncaught exception: Syntax error, unrecognized expression: #</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6986' value='Select Code' data-codeid='sfcode6986' /></p>
<div class='sfcode' id='sfcode6986'>$(&#34;#grid3&#34;).jqGrid(&#39;jqGridImport&#39;,{<br /> imptype: &#39;xmlstring&#39;,<br />&#160;impstring: &#39;&#60;roots&#62;&#60;grid&#62;&#60;colModel&#62;&#60;name&#62;P1&#60;/name&#62;&#60;sortable&#62;false&#60;/sortable&#62;&#60;resizable&#62;true&#60;/resizable&#62;&#60;/colModel&#62;&#60;colModel&#62;				&#60;name&#62;P2&#60;/name&#62;&#60;sortable&#62;false&#60;/sortable&#62;&#60;resizable&#62;true&#60;/resizable&#62;&#60;/colModel&#62;&#60;colNames&#62;Property 1&#60;/colNames&#62;&#60;colNames&#62;Property 2&#60;/						colNames&#62;&#60;datatype&#62;xml&#60;/datatype&#62;&#60;/grid&#62;&#60;rows&#62;&#60;row id=&#34;as1234&#34;&#62;&#60;cell&#62;doc name 1&#60;/cell&#62;&#60;cell&#62;bla blha bla&#60;/cell&#62;&#60;/row&#62;&#60;/rows&#62;&#60;/roots&#62;&#39;,<br /> xmlGrid :{config: &#34;roots&#62;grid&#34;,	data: &#34;roots&#62;rows&#34;},<br /> });</div>
<p>I need to send to the client a lot of configuration data in one file, including Grid config/data for several grids.</p>
<p>That is why I&#39;m not using XML import, but I want to use xmlstring.</p>
</p>
<p>Can anyone tell me why the same data works in the first example but fails in the second?</p>
<p>Is there a bug in the string to doc conversion that happens in import.js?</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5043' value='Select Code' data-codeid='sfcode5043' /></p>
<div class='sfcode' id='sfcode5043'>$.jgrid.stringToDoc(o.impstring);&#160;</div>
<p>Thanks for any help! </p>
]]></description>
        	        	<pubDate>Thu, 21 Oct 2010 17:35:24 +0300</pubDate>
        </item>
</channel>
</rss>