<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiseCodes &#187; XML</title>
	<atom:link href="http://www.wisecodes.com/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wisecodes.com</link>
	<description>Bringing You The Power of Code !!</description>
	<lastBuildDate>Wed, 01 Sep 2010 19:33:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How To Create An XML Document In C#</title>
		<link>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/</link>
		<comments>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 06:22:28 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=253</guid>
		<description><![CDATA[It is very easy, as there I wondered, here is the code: ?View Code CSHARPusing System.Xml.Linq protected void CreateDocumentXML &#40;&#41; &#123; XDocument TheCodersXML = new XDocument&#40; new XDeclaration&#40;&#34;1.0&#34;,&#34;utf-8&#34;,&#34;yes&#34;&#41; new XComment&#40;&#34;List of Students&#34;&#41; new XElement&#40;&#34;Students&#34; new XElement&#40;&#34;Student&#34; new XAttribute&#40;&#34;Id&#34;,&#34;No:123&#34;&#41; new XElement&#40;&#34;Name&#34;,&#34;Diana Wallwalker&#34;&#41; new XElement&#40;&#34;Age&#34;,&#34;23&#34;&#41;&#41;, &#160; new XElement&#40;&#34;Student&#34; new XAttribute&#40;&#34;Id&#34;,&#34;No:456&#34;&#41; new XElement&#40;&#34;Name&#34;,&#34;Danny Thomas&#34;&#41; new XElement&#40;&#34;Age&#34;,&#34;27&#34;&#41;&#41;, &#160; new [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy, as there I wondered, here is the code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code4'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2534"><td class="code" id="p253code4"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Xml</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span>
<span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #6666cc; font-weight: bold;">void</span> CreateDocumentXML <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
XDocument TheCodersXML <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XDocument<span style="color: #008000;">&#40;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XDeclaration<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;1.0&quot;</span>,<span style="color: #666666;">&quot;utf-8&quot;</span>,<span style="color: #666666;">&quot;yes&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XComment<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;List of Students&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Students&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:123&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Diana Wallwalker&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;23&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:456&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Danny Thomas&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;27&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:789&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Roger Benny&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;20&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>,
&nbsp;
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Student&quot;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Id&quot;</span>,<span style="color: #666666;">&quot;No:012&quot;</span><span style="color: #008000;">&#41;</span>
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Name&quot;</span>,<span style="color: #666666;">&quot;Venu Thomas&quot;</span><span style="color: #008000;">&#41;</span>,
<a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XElement<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Age&quot;</span>,<span style="color: #666666;">&quot;26&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>In the end it saved in the address you want:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code5'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2535"><td class="code" id="p253code5"><pre class="csharp" style="font-family:monospace;">TheCodersXML<span style="color: #008000;">.</span><span style="color: #0000FF;">Save</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">@&quot;c:\TheCodersXML.xml&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p> <br />
<strong><br />
<h4> Output:</h4>
<p></strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p253code6'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2536"><td class="code" id="p253code6"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0″ encoding=&quot;</span>utf-8″ <span style="color: #000066;">standalone</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #808080; font-style: italic;">&lt;!-- List of Students --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;students<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:123&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Diana Wallwalker<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>23<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:456&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Danny Thomas<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>27<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:789&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Roger Benny<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>20<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;student</span> <span style="color: #000066;">Id</span>=<span style="color: #ff0000;">&quot;No:012&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Venu Thomas<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>26<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/age<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/student<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/students<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/03/how-to-create-an-xml-document-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to ASP.NET Maker, PHPMaker, ASPMaker, JSPMaker, XML/XSLT Maker &amp; CFMMaker.</title>
		<link>http://www.wisecodes.com/2009/03/intro-to-aspnet-maker-phpmaker-aspmaker-jspmaker-xmlxslt-maker-cfmmaker/</link>
		<comments>http://www.wisecodes.com/2009/03/intro-to-aspnet-maker-phpmaker-aspmaker-jspmaker-xmlxslt-maker-cfmmaker/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 15:07:49 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[CFM]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=187</guid>
		<description><![CDATA[ASP.NET Maker : Generate the asymmetric multiprocessing system. Net 2. 0 writes the script from the database ASP.NET Maker is a powerful yet easy-to-use ASP.NET code generator for ASP.NET 2.0. It can create a full set of ASP.NET 2.0 pages quickly from Microsoft Access, Microsoft SQL Server, MySQL, Oracle and other ODBC data sources. You [...]]]></description>
			<content:encoded><![CDATA[<h3><strong>ASP.NET Maker : Generate the asymmetric multiprocessing system. Net 2. 0 writes the script from the database<br />
</strong></h3>
<p>ASP.NET Maker is a powerful yet easy-to-use ASP.NET code generator for ASP.NET 2.0. It can create a full set of ASP.NET 2.0 pages quickly from Microsoft Access, Microsoft SQL Server, MySQL, Oracle and other ODBC data sources. You can instantly create Web sites that allow users to view, edit, search, add and delete records on the Web.<br />
ASP.NET Maker offers numerous useful features, including 3-Tier Architecture, ASP.NET AJAX, Extended Quick Search, Drill-down Master/Detail, Advanced Security, User Registration System, Custom View, Report, Export, File.</p>
<p><strong><a href="http://vimeo.com/2943734?pg=embed&amp;sec=2943734" target="_blank">Better Quality Video Tutorial: Click Here</a></strong></p>
<p><object width="589" height="367" data="http://vimeo.com/moogaloop.swf?clip_id=2943734&#038;server=vimeo.com&#038;autoplay=0&#038;fullscreen=1&#038;show_portrait=0&#038;show_title=0&#038;show_byline=0&#038;color=00ADEF&#038;context=user:1205003&#038;context_id=&#038;hd_off=0&#038;buildnum=22937" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=2943734&#038;server=vimeo.com&#038;autoplay=0&#038;fullscreen=1&#038;show_portrait=0&#038;show_title=0&#038;show_byline=0&#038;color=00ADEF&#038;context=user:1205003&#038;context_id=&#038;hd_off=0&#038;buildnum=22937" /></object></p>
<p><strong><a href="http://www.hkvstore.com/aspmaker/" target="_blank">Read More..</a></strong></p>
<h3>PHPMaker: Generate PHP from MySQL</h3>
<p>PHPMaker is the powerful automation equipment which can generate all matching of PHP directly from the database of MySQL, (because of Windows). Using PHPMaker, in order to compile because the user searches at once, in order to add, it makes that you see, possible, deleting the record of the net data type everything of MySQL, including BLOB, ENUM and set can draw up the web sight which it supports.</p>
<p><strong><a href="http://www.hkvstore.com/phpmaker/" target="_blank">Read More..</a></strong></p>
<h3>ASPMaker: Generate the asymmetric multiprocessing system from the database.</h3>
<p>ASPMaker the asymmetric multiprocessing system (the be active server page) is the powerful automation equipment which can generate all matching directly from the database of the Microsoft access or data source which supports the noise. Using ASPMaker, at once the user looks at the record of the net, compiles, searches, adds, can draw up the web sight which makes that it deletes possible.</p>
<p><strong><a href="http://www.hkvstore.com/aspmaker/" target="_blank">Read More..</a></strong></p>
<h3>JSPMaker: JSP is generated directly from MySQL or Oracle.</h3>
<p>JSPMaker however JSP (the page of JavaServer) being powerful draws up all matching directly from MySQL or Oracle, is the cord/code generator which it is easy to use.</p>
<p><strong><a href="http://www.hkvstore.com/jspmaker/" target="_blank">Read More..</a></strong></p>
<h3>XML/XSLT Maker: The lattice of DHTML and dynamic XML/XSLT draw up the web sight which it has made be based</h3>
<p>As for XMLMaker the lattice of DHTML for the general user and dynamic XML/XSLT for the developer of time it is the cord/code generator which cannot draw up the web sight which it has made be based. The lattice of DHTML is the WEB based lattice part which is based on conduct and XML/XSLT of DHTML, but that the lattice is used, knowledges of XML/XSLT/DHTML is not required.</p>
<p><strong><a href="http://www.hkvstore.com/aspxmlmaker/" target="_blank">Read More..</a></strong></p>
<h3>CFMMaker: Generate the template of CFM from the database.</h3>
<p>CFMMaker however CFM (the template of ColdFusion) being powerful draws up all matching directly from your data source, is the cord/code generator which it is easy to use. The database which is supported makes a noise and or connection characteristic Microsoft of ODBC access, the Microsoft SQL server, includes Oracle or the database.</p>
<p><strong><a href="http://www.hkvstore.com/cfmmaker/" target="_blank">Read More..</a></strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/intro-to-aspnet-maker-phpmaker-aspmaker-jspmaker-xmlxslt-maker-cfmmaker/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/03/intro-to-aspnet-maker-phpmaker-aspmaker-jspmaker-xmlxslt-maker-cfmmaker/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/03/intro-to-aspnet-maker-phpmaker-aspmaker-jspmaker-xmlxslt-maker-cfmmaker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax Based Search Engine With PHP and XML</title>
		<link>http://www.wisecodes.com/2009/02/ajax-based-search-engine-with-php-and-xml/</link>
		<comments>http://www.wisecodes.com/2009/02/ajax-based-search-engine-with-php-and-xml/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 19:52:18 +0000</pubDate>
		<dc:creator>Venu Thomas</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JAVASCRIPT]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.code.venuthomas.net/?p=12</guid>
		<description><![CDATA[Here Sample code of Ajax based search engine with PHP and XML  Live Preview          Download Code   This is the Javascript Code : ?View Code JAVASCRIPT/* &#38;lt;--------------------------&#38;gt; */ /* XMLHTTPRequest Enable */ /* &#38;lt;--------------------------&#38;gt; */ function createObject&#40;&#41; &#123; var request_type; var browser = navigator.appName; if&#40;browser == &#34;Microsoft Internet Explorer&#34;&#41;&#123; request_type = new ActiveXObject&#40;&#34;Microsoft.XMLHTTP&#34;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>Here Sample code of Ajax based search engine with PHP and XML</p>
<p><span style="color: #000000; text-decoration: none;"><span style="color: #000000; text-decoration: none;"><span style="color: #000000; text-decoration: none;"><a href="http://code.venuthomas.net/Code/Ajax_SearchEngine/html_Search.html" target="_blank"><img class="alignnone size-full wp-image-18" title="live_preview" src="http://www.wisecodes.com/wp-content/uploads/2009/02/live_preview.png" alt="live_preview" width="32" height="32" /> Live Preview</a><span style="color: #000000; text-decoration: none;">          </span><a href="http://code.venuthomas.net/Code/Ajax_SearchEngine/AjaxSearchEngine.zip" target="_blank"><img class="alignnone size-full wp-image-29" title="download" src="http://www.wisecodes.com/wp-content/uploads/2009/02/download.gif" alt="download" width="32" height="35" /></a><span style="color: #000000; text-decoration: none;"><a href="http://code.venuthomas.net/Code/Ajax_SearchEngine/AjaxSearchEngine.zip" target="_blank">Download Code</a></span></span></span></span></p>
<p> </p>
<p><strong>This is the Javascript Code :</strong></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p12code9'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p129"><td class="code" id="p12code9"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/* &amp;lt;--------------------------&amp;gt; */</span>
<span style="color: #009966; font-style: italic;">/* XMLHTTPRequest Enable		*/</span>
<span style="color: #009966; font-style: italic;">/* &amp;lt;--------------------------&amp;gt; */</span>
<span style="color: #003366; font-weight: bold;">function</span> createObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> request_type<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> browser <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">appName</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>browser <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;Microsoft Internet Explorer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
request_type <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> ActiveXObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
request_type <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">return</span> request_type<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> http <span style="color: #339933;">=</span> createObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009966; font-style: italic;">/* &amp;lt;--------------------------&amp;gt; */</span>
<span style="color: #009966; font-style: italic;">/* 		SEARCH				   */</span>
<span style="color: #009966; font-style: italic;">/* &amp;lt;--------------------------&amp;gt; */</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> fnSearchName<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
txtInput<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">encodeURI</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'txtInput'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'divmsg'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;block&quot;</span><span style="color: #339933;">;</span>
document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'divmsg'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Searching for &lt;strong&gt;&quot;</span> <span style="color: #339933;">+</span> txtInput<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&lt;/strong&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Set te random number to add to URL request</span>
nocache <span style="color: #339933;">=</span> Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
http.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'get'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'php_Search.php?name='</span><span style="color: #339933;">+</span>txtInput<span style="color: #339933;">+</span><span style="color: #3366CC;">'&amp;amp;nocache = '</span><span style="color: #339933;">+</span>nocache<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
http.<span style="color: #660066;">onreadystatechange</span> <span style="color: #339933;">=</span> fnSearchNameReply<span style="color: #339933;">;</span>
http.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> fnSearchNameReply<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> response <span style="color: #339933;">=</span> http.<span style="color: #660066;">responseText</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'divResult'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">=</span>response<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><strong>This is the PHP Code :</strong></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p12code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1210"><td class="code" id="p12code10"><pre class="php" style="font-family:monospace;">load<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;NameList.xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$x</span><span style="color: #339933;">=</span><span style="color: #000088;">$xmlDoc</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getElementsByTagName<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'NAME'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;=</span><span style="color: #000088;">$x</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>length<span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//Process only element nodes</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nodeType<span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>childNodes<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nodeValue <span style="color: #339933;">==</span> <span style="color: #000088;">$q</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$y</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>parentNode<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$cd</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$y</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>childNodes<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #000088;">$cd</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>length<span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//Process only element nodes</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$cd</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nodeType<span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cd</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nodeName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;: &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cd</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>childNodes<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>item<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>nodeValue<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></td></tr></table></div>

<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/02/ajax-based-search-engine-with-php-and-xml/" target="_blank"><img src="http://www.wisecodes.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.wisecodes.com/2009/02/ajax-based-search-engine-with-php-and-xml/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisecodes.com/2009/02/ajax-based-search-engine-with-php-and-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

