<?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: XML parsing help</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help</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/xml-parsing-help/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30122</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30122</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Zip the file and send it to my mail. Look at the example posted from me. It is quite similar.</p>
<p>Making copy/paste from this editor is not recommended.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 22 Jan 2014 22:12:12 +0200</pubDate>
        </item>
        <item>
        	<title>JimC on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30121</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30121</guid>
        	        	<description><![CDATA[</p>
<p>This is basically the XML here. You can copy/paste it into a text file. I can parse this with jQuery using this function. &#160;I suppose if I can&#39;t get jqGrid to read the XML directly, I can parse the XML and save it into an array and then pass the array to jqGrid but I would much prefer to just have jqGrid directly read the XML.&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6091' value='Select Code' data-codeid='sfcode6091' /></p>
<div class='sfcode' id='sfcode6091'>&#160;$(data).find(&#39;z:row, row&#39;).each(function () &#160; &#160; &#160;&#160;<span style=&#34;white-space: pre;&#34;> </span>{$(&#34;#ows_Country&#34;).val($(this).attr(&#39;ows_Country&#39;));<br />&#160;});</div>
</p>
<p>XML File:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1195' value='Select Code' data-codeid='sfcode1195' /></p>
<div class='sfcode' id='sfcode1195'>
<p>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;&#60;soap:Envelope xmlns:soap=&#34;<a rel=&#34;&#34;nofollow&#34;&#34; href=&#34;/blog/&#34;http:/schemas.xmlsoap.org/soap/envelope/&#38;quot&#34;&#34; target=&#34;_blank&#34; target="_blank"></a><a rel=&#34;nofollow&#34; href=&#34;http://schemas.xmlsoap.org/soa&#38;hellip&#34; target="_blank"></a><a href="http://schemas.xmlsoap.org/soa&#038;hellip" rel="nofollow" target="_blank"><a href="http://schemas.xmlsoap.org/soa" rel="nofollow">http://schemas.xmlsoap.org/soa</a>.....038;hellip</a>;..038;hellip;..&#38;quot; xmlns:xsi=&#34;<a rel=&#34;&#34;nofollow&#34;&#34; href=&#34;/blog/&#34;http:/www.w3.org/2001/XMLSchema-instance&#38;quot&#34;&#34; target=&#34;_blank&#34; target="_blank"></a><a rel=&#34;nofollow&#34; href=&#34;http://www.w3.org/2001/XMLSche&#38;hellip&#34; target="_blank"></a><a href="http://www.w3.org/2001/XMLSche&#038;hellip" rel="nofollow" target="_blank"><a href="http://www.w3.org/2001/XMLSche" rel="nofollow">http://www.w3.org/2001/XMLSche</a>.....038;hellip</a>;..038;hellip;..&#38;quot; xmlns:xsd=&#34;<a rel=&#34;&#34;nofollow&#34;&#34; href=&#34;/blog/&#34;http:/www.w3.org/2001/XMLSchema&#34;&#62;&#60;soap:Body&#62;&#60;GetListItemsResponse&#34;&#34; target=&#34;_blank&#34; target="_blank"></a><a rel=&#34;nofollow&#34; href=&#34;http://www.w3.org/2001/XMLSche&#38;hellip&#34; target="_blank"></a><a href="http://www.w3.org/2001/XMLSche&#038;hellip" rel="nofollow" target="_blank"><a href="http://www.w3.org/2001/XMLSche" rel="nofollow">http://www.w3.org/2001/XMLSche</a>.....038;hellip</a>;..038;hellip;..msResponse xmlns=&#34;<a rel=&#34;&#34;nofollow&#34;&#34; href=&#34;/blog/&#34;http:/schemas.microsoft.com/sharepoint/soap/&#34;&#62;&#60;GetListItemsResult&#62;&#60;listitems&#34;&#34; target=&#34;_blank&#34; target="_blank"></a><a rel=&#34;nofollow&#34; href=&#34;http://schemas.microsoft.com/s&#38;hellip&#34; target="_blank"></a><a href="http://schemas.microsoft.com/s&#038;hellip" rel="nofollow" target="_blank"><a href="http://schemas.microsoft.com/s" rel="nofollow">http://schemas.microsoft.com/s</a>.....038;hellip</a>;..038;hellip;..;listitems xmlns:s=&#39;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&#39; xmlns:dt=&#39;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&#39; xmlns:rs=&#39;urn:schemas-microsoft-com:rowset&#39; xmlns:z=&#39;#RowsetSchema&#39;&#62;</p>
<p>&#60;rs:data ItemCount=&#34;1&#34;&#62;</p>
<p>&#60;z:row ows_ID=&#39;16475&#39; ows_Country=&#39;Denmark&#39; ows_Reporting_Month=&#39;2012-MAR&#39; ows_SourceID=&#39;test parent 1&#39; ows_Created=&#39;2013-04-10 13:29:03&#39; ows_Cluster=&#39;null&#39; ows_NewOrUpdatedRecord=&#39;0&#39; ows_RecordUpdate=&#39;0&#39; /&#62;</p>
<p>&#60;/rs:data&#62;</p>
<p>&#60;/listitems&#62;&#60;/GetListItemsResult&#62;&#60;/GetListItemsResponse&#62;&#60;/soap:Body&#62;&#60;/soap:Envelope&#62;</p>
</div>
]]></description>
        	        	<pubDate>Wed, 22 Jan 2014 22:06:40 +0200</pubDate>
        </item>
        <item>
        	<title>tony on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30120</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30120</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Please check if the xml file that you have is a VALID XML.</p>
<p>The very simple way to test is to read the same file using only jQuery and not jqGrid.</p>
<p>If you have succes with this, then I&#39;m sure there will be no problems with jqGrid.</p>
<p>If you are lost on this, please zip the file and send it to my mail.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 22 Jan 2014 19:48:18 +0200</pubDate>
        </item>
        <item>
        	<title>JimC on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30119</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30119</guid>
        	        	<description><![CDATA[</p>
<p>This is the code I have. It still doesn&#39;t work to parse that XML. The xml.txt is just a file saved on the server with the XML code. I am at a lost as to what it missing&#8230;. I read through the documentation and it seems like this is the correct way to parse that XML. Do you know of any other sites where someone might be able to assist on this?</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5505' value='Select Code' data-codeid='sfcode5505' /></p>
<div class='sfcode' id='sfcode5505'>
<p>jQuery(&#34;#listXML&#34;).jqGrid({&#160;</p>
<p>&#160; &#160; &#160; datatype: &#34;xml&#34;,</p>
<p>&#160; &#160; &#160; url: &#34;<a rel=&#34;nofollow&#34; href=&#34;http://www.mysite.net/XML.txt&#38;quot&#34; target="_blank">http://www.mysite.net/XML.txt</a>&#34;;,</p>
<p>&#160; &#160; &#160; height: 250,&#160;</p>
<p>&#160; &#160; &#160; colNames: [&#39;ID No&#39;, &#39;Country&#39;],&#160;</p>
<p>&#160; &#160; &#160; colModel: [ {name: &#39;id&#39;, xmlmap:&#39;[ows_ID]&#39;},&#160;</p>
<p><span style=&#34;&#34;white-space:&#34;></span><span style=&#34;white-space: pre;&#34;> </span>&#160;&#160;{name: &#39;country&#39;, xmlmap:&#39;[ows_Country]&#39;}</p>
<p>&#160; &#160; &#160; ],&#160;</p>
<p>&#160; &#160; &#160; xmlReader: { root: &#34;rs\:data&#34;,&#160;</p>
<p><span style=&#34;&#34;white-space:&#34;> </span>&#160; &#160;<span style=&#34;&#34;white-space:&#34;> </span>&#160; &#160;row: &#34;z\:row&#34;,</p>
<p><span style=&#34;&#34;white-space:&#34;> </span>&#160;&#160; &#160; &#160; &#160; &#160; <span style=&#34;&#34;white-space:&#34;> </span>&#160; &#160;repeatitems: false,</p>
<p><span style=&#34;&#34;white-space:&#34;> </span>&#160; &#160; &#160; &#160; &#160; &#160; &#160;<span style=&#34;&#34;white-space:&#34;> </span>&#160; &#160;id: &#34;[ows_ID]&#34;</p>
<p>&#160; &#160; &#160; },<br />&#160; &#160; &#160; &#160;multiselect: true,&#160;</p>
<p>&#160; &#160; &#160; &#160;caption: &#34;Test&#34;&#160;</p>
<p>&#160; &#160; });</p>
</div>
]]></description>
        	        	<pubDate>Wed, 22 Jan 2014 18:02:16 +0200</pubDate>
        </item>
        <item>
        	<title>tony on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30117</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30117</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Sorry, but I think that that you have read the docs how to parse attributes in jqGrid. You will need to to use xmlmap and set it like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1750' value='Select Code' data-codeid='sfcode1750' /></p>
<div class='sfcode' id='sfcode1750'>
<p>colModel :&#160; [</p>
<p>{name:&#39;Field1&#39;, xmlmap : &#39;[Field1]&#39;, ...}.</p>
<p>...</p>
<p>]</p>
</div>
<p>This is the way that I think it is the best way&#160; to publish full test case - this will save time.</p>
<p>Now here is the <a href="/blog/phpjqgrid/examples/other/test/xmlns.html" target="_blank">demo</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 22 Jan 2014 16:31:35 +0200</pubDate>
        </item>
        <item>
        	<title>JimC on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30112</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30112</guid>
        	        	<description><![CDATA[<p>Hi Tony, I tried that and it didn&#39;t work. My code is :</p>
<p>&#160; xmlReader: {root: "rs\\\\:data",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; row: "z\\\\:row",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; repeatitems: false,</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; id: "[ows_ID]"</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;}, &#160; &#160; &#160; &#160;</p>
</p>
<p>This doesn&#39;t parse the xml and shows 0 results. Any other tips for parsing the XML returned from a sharepoint? Thanks!</p>
]]></description>
        	        	<pubDate>Tue, 21 Jan 2014 16:08:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30108</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30108</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Parsing with namespaces is a little bit diffrent with jQuery.</p>
<p>I have never thest this, but you will need to add&#160;   double esc chars in the jsonReader</p>
</p>
<p>By example</p>
<p> ...</p>
<p>jsonReader: {</p>
<p>...</p>
<p>root : "rs\\\\\:data",</p>
<p>...</p>
<p>}</p>
<p> Sorry for the changes the editor is buggy. I mean two &#39;\&#39; &#39;\&#39;.</p>
<p>More you can <a href="http://stackoverflow.com/questions/853740/jquery-xml-parsing-with-namespaces" target="_blank">find here</a></p>
</p>
<p>Please let me know if this work for you.</p>
<p>Thank you.</p>
</p>
<p>Kind Regards</p></p>
]]></description>
        	        	<pubDate>Mon, 20 Jan 2014 16:00:08 +0200</pubDate>
        </item>
        <item>
        	<title>JimC on XML parsing help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30099</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-parsing-help#p30099</guid>
        	        	<description><![CDATA[<p>Hello, I am new to using jqGrid and need help to get the XML data from my sharepoint to show up in jqGrid. I read through the documentation but there wasn&#39;t any examples for the XML data that I am faced with. This is the output from my sharepoint when I retrieve data with Javascript AJAX.&#160;</p>
</p>
<p>&#60;?xml version="1.0" encoding="utf-8"?&#62;</p>
<p>&#160;<span style="white-space: pre;"> </span>&#60;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" mlns:xsd="http://www.w3.org/2001/XMLSchema"&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;soap:Body&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;GetListItemsResult&#62;&#160; &#160;</p>
<p><span style="white-space: pre;"> </span>&#60;listitems&#160;xmlns:z=&#39;#RowsetSchema&#39;&#62;&#60;listitems xmlns:s=&#39;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&#39; xmlns:dt=&#39;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&#39; xmlns:rs=&#39;urn:schemas-microsoft-com:rowset&#39;&#160;xmlns:z=&#39;#RowsetSchema&#39;&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;rs:data ItemCount="2"&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;z:row Field1=&#39;16475&#39; Field2=&#39;John Smith&#39; Field3=&#39;Male&#39;&#62;</p>
<p><span style="white-space: pre;"> </span>&#60;z:row Field1=&#39;16456&#39; Field2=&#39;Jane Doe&#39; Field3=&#39;Female&#39;&#62;</p>
<p>&#60;/rs:data&#62;&#160;&#60;/listitems&#62;&#60;/GetListItemsResult&#62;&#60;/GetListItemsResponse&#62; &#60;/soap:Body&#62;&#60;/soap:Envelope&#62; &#160; &#160; &#160;</p>
</p>
<p>How do I code the jqGrid xmlReader to read this XML? Please help!</p>
]]></description>
        	        	<pubDate>Fri, 17 Jan 2014 19:31:36 +0200</pubDate>
        </item>
</channel>
</rss>