<?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 element attribute</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/xml-element-attribute</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-element-attribute/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on XML element attribute</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-element-attribute#p16676</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-element-attribute#p16676</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Did you have read:</p>
<p>XML Notes and Limitations</p>
<p>in the docs here:</p>
<p><a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:retrieving_data#xml_notes_and_limitations" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....imitations</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 12:58:27 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on XML element attribute</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/xml-element-attribute#p16572</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/xml-element-attribute#p16572</guid>
        	        	<description><![CDATA[<p>DEAD ISSUE for the moment... NEEd to solve just getting data into grid first.</p>
</p>
<p>I have an xml document which uses the xml element attritubute, such as the "dodic" in the following example:</p>
<p>&#60;chemical dodic="k866&#8243;&#62;<br />&#160;&#160; &#160;&#60;weaponType&#62;smoke&#60;/weaponType&#62;<br />&#60;/chemical&#62;</p>
</p>
<p>I am trying to set up my jqGrid to be able to use element attributes, either in the xmlReader or colModel portion of the script.&#160; Looking through the documentation, I don&#39;t see an example of how it is accomplished.&#160; I am using static xml document as my data source.&#160; If I need to restructure the xml to move this attribute into its own element, I would like to do it now.</p>
</p>
<p>Does anyone have a suggestion??</p>
</p>
<p>Here is my controller script:</p>
<p>$(&#39;#chem li&#39;).click(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#welcome&#39;).css(&#39;display&#39;, &#39;none&#39;);<br />&#160;&#160; &#160;&#160;&#160;&#160; $(&#39;#searchResults&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url: &#39;weaponLib/AME_chem.xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:["DODIC","NSN", "Nomenclature"],<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"dodic",index:"dodic", width:120, xmlmap:"ItemAttributes&#62;Author"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"NSN",index:"NSN", width:180,xmlmap:"chemical&#62;transData&#62;NSN"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:"nomenclature",index:"nomenclature", width:100, align:"right",xmlmap:"chemical&#62;nomenclature", sorttype:"float"}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:250,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width: 700,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;xmlReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root : "chemicals",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;row: "chemical",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "ASIN"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: "Chemical Weapon Results"<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#theGrid&#39;).css(&#39;display&#39;, &#39;block&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;});</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Tue, 20 Apr 2010 21:16:58 +0300</pubDate>
        </item>
</channel>
</rss>