<?xml version="1.0" encoding="iso-8859-1"?><rss version="1.0"><channel><title>Diary of sanjeev pandey</title><link>http://urssanj00.rediffiland.com/</link><description>Diary of sanjeev pandey</description><language>en-us</language><item><title>Tibco GI-Parse xml cache</title><description><![CDATA[<BR>Yesterday I was facing problem in loading the data in select/combo fetched from Webservices. Data fetched from webservices are stored in local cache file. Then I browsed the Tibco GI API and got some hints. Its very easy to do.  Lets see step wise:<br>1. Get the xml document in srcDoc from cache- menu_xml.Data from webservices are loaded in cache in some local cache file. here menu_xml is used for example.<br>       <font size="2"><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"> var srcDoc = tibco.app.logic.SERVER.getCache().getDocument("menu_xml");</span></font><br><br>2. Convert the srcDoc in List of nodes.<br>        <font size="2"><span style="font-family: Verdana,Arial,Helvetica,sans-serif;">var recordNodes = srcDoc.getChildNodes(false);</span></font><br><br>3. Get the size of List recordNodes<br>       <font size="2"><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"> var recordSize = recordNodes.size();</span></font><br><br>4. Iterate the list, get the attributes and form the string to be loaded as XMLString in Drop down.<br>    <font size="2"><span style="font-family: Courier New,Courier,mono;">  var xmlString = '&amp;lt;data jsxid="jsxroot"&amp;gt;';<data jsxid="jsxroot"><br>    var recordNode;<br>    <br>    for (var i = 0; i &lt; recordSize; i++) <br>    {<br>        recordNode = recordNodes.get(i);<br>        xmlString +="&amp;lt;record jsxid="" + recordNode.getAttribute(valueAttr) + "" jsxtext="" + recordNode.getAttribute(textAttr) + ""/&amp;gt;";<br>        }<br>    xmlString += "</data>&amp;lt;/data&amp;gt;";</span><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"></span><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"></span><br style="font-family: Verdana,Arial,Helvetica,sans-serif;"></font><br>5. Set the xmlString in <font size="2"><span style="font-family: Verdana,Arial,Helvetica,sans-serif;">combo.setXMLString(xmlString)</span></font>. <br><br>6. The drop down will get populated with value and options.<br><br><br><br><br><BR>]]></description><pubDate>Fri, 22 Feb 2008 09:14:28 +0530</pubDate><link>http://urssanj00.rediffiland.com/blogs/2008/02/22/Tibco-GI-Parse-xml-cache.html</link></item><item><title>MRT Pass</title><description><![CDATA[It was the day if Diwali(2007) and we all decided to go Murugan temple. After visiting <BR>nearby temple we all Guys from Race course road went to catch bus for Murugan <BR>temple. Senthil was very much interested to go to murugan temple and because of <BR>him all were going. But he was not sure about which bus will go. He asked one <BR>freind and he told a number ( i dont remember that). the bus came and we went <BR>into that. everybody swiped their <span style="font-weight: bold;">EZLink </span>card for fare except Surya. He took <BR>ticket of 90 cents. Its minimum fare of bus in Singapore if you want to take it <BR>by cash, by <span style="font-weight: bold;">EZLink </span>card it will be 67 cents. We enquired him why he dint swiped <BR>his card, because its costlier by cash, but according to Surya he was not having <BR>Bus pass so he took ticket. Ohh ok we thought he is not having EZLink card <BR>becasue he came only one moth back so he might not have got. But fact was <BR>something else. I asked him then how he goes to offiice. Its in <span style="font-weight: bold;">Suntec </span>only. He <BR>said he goes by MRT and is having <span style="font-weight: bold;">MRT Pass</span> and told that its cheaper than <BR>regular fare. We were surprised and, I told him to show that. It was same <span style="font-weight: bold;">EZLink <BR></span>card. Heee hee ..and one more surprise item, actually it was first time he was travelling in bus in <BR>Singapore, he always took MRT to commute so he was not having idea about that. <BR>It was a joke of the day and we enjoyed alot. <br><br>Now twist in story. Rather <BR>than going to Orchard Road bus was going to Suntec City. I asked driver and he <BR>said that the bus will never go to Murugan temple and we got down at Citi Hall. <BR><br><br>We all took 857 and came back, but Senthil went again after enquiring <BR>the correct bus number. We got down at Little India, had south Indian mean in <BR>Sarvana Bhanwan and went back home. <br>After having south indian meal I was <BR>feeling lazy and tired I spent while sleeping in afternoon. <br><br>But i was <BR>missing my home a lot on the day of diwali. I dont know when I will celebrate <BR>Diwali with my parents. <br><BR><BR>]]></description><pubDate>Tue, 19 Feb 2008 17:52:10 +0530</pubDate><link>http://urssanj00.rediffiland.com/blogs/2008/02/19/MRT-Pass.html</link></item><item><title>Weight Reduce and Sustain</title><description><![CDATA[<P><FONT face="Arial, Helvetica, sans-serif">Weight Reduce is not easy cakewalk. It needs a lot of dedication and consistency.</FONT></P><BR><P><FONT face=Arial>I reduced 4 kgs in 6 months but when I became irregular with my program, I gained it within a month :(.</FONT></P><BR><P><FONT face=Arial>Weight can be easily reduced by doing cardio. Just burn daily 1000 calories and do some weights, the extra weight will start going and daily the effect can be figure out. </FONT></P><BR><P><FONT face=Arial>But once you feel that you have reduced enough and start being rlax the extra weight reduced will come back very fast.</FONT></P><BR><P><FONT face=Arial>It easy to reduce weight, but its very tough to sustain that reduction that I learned.</FONT></P>]]></description><pubDate>Fri, 19 Oct 2007 11:20:52 +0530</pubDate><link>http://urssanj00.rediffiland.com/blogs/2007/10/19/Weight-Reduce-and-Sustain.html</link></item></channel></rss>