<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUUMRn4zcSp7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549</id><updated>2011-11-27T17:21:27.089-08:00</updated><category term="AJAX" /><category term="Tech News" /><category term="JavaScript" /><title>Web Technology</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://tanmaytunveer.blogspot.com/" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Tanmaytunveer" /><feedburner:info uri="tanmaytunveer" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUUBRHgycSp7ImA9WxJbEks.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-7425492895501954237</id><published>2009-07-22T05:48:00.000-07:00</published><updated>2009-07-22T05:54:15.699-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-22T05:54:15.699-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>Easy steps to develop application using Ajax.NET Pro Library</title><content type="html">&lt;div&gt;Preparing your application to use the &lt;b&gt;Ajax.NET Pro library&lt;/b&gt; requires the following steps:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;1.&lt;/b&gt; First, you have to set up your ASP.NET application to be Ajax.NET Pro–enabled. This is done with the reference being set to the AjaxPro.dll assembly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;2.&lt;/b&gt; Second, you must modify your Web.Config file to register the AjaxPro.AjaxHandlerFactory to process all the AjaxPro/*.ashx requests.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;3.&lt;/b&gt; Now that your application is Ajax.NET Pro–enabled, you’re ready to build some Ajax functionality into your pages. On the page level, register your page class with the AjaxPro.Utility&lt;/div&gt;&lt;div&gt;.RegisterTypeForAjax() method.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;4. &lt;/b&gt;Then decorate your methods with the AjaxPro.AjaxMethod() attribute.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;5. &lt;/b&gt;Finally, the Ajax.NET Pro library will create a JavaScript proxy object for you that follows the ClassName.MethodName() naming convention. Just add a little client UI and JavaScript to activate your server response, and your application is running on Ajax fuel.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-7425492895501954237?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0tTtVgk1WRqhjP6-I_EXJAMR0UM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0tTtVgk1WRqhjP6-I_EXJAMR0UM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0tTtVgk1WRqhjP6-I_EXJAMR0UM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0tTtVgk1WRqhjP6-I_EXJAMR0UM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/iUVVg5pCu8c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/7425492895501954237/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=7425492895501954237" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7425492895501954237?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7425492895501954237?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/iUVVg5pCu8c/easy-steps-to-develop-application-using.html" title="Easy steps to develop application using Ajax.NET Pro Library" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/07/easy-steps-to-develop-application-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cFSXwzeCp7ImA9WxJUF0s.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-5027507512098650088</id><published>2009-07-16T11:05:00.000-07:00</published><updated>2009-07-16T11:30:18.280-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-16T11:30:18.280-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Tech News" /><title>Google vs. Microsoft: What you need to know</title><content type="html">Its enough to know about competition between &lt;b&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;Google and Microsoft...&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://edition.cnn.com/2009/TECH/07/15/google.microsoft.battle/index.html"&gt;http://edition.cnn.com/2009/TECH/07/15/google.microsoft.battle/index.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-5027507512098650088?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6j2xLcmQ1BKy7c47sMakJjnbUCw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6j2xLcmQ1BKy7c47sMakJjnbUCw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6j2xLcmQ1BKy7c47sMakJjnbUCw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6j2xLcmQ1BKy7c47sMakJjnbUCw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/gpvQII8xuwU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/5027507512098650088/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=5027507512098650088" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/5027507512098650088?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/5027507512098650088?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/gpvQII8xuwU/google-vs-microsoft-what-you-need-to.html" title="Google vs. Microsoft: What you need to know" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/07/google-vs-microsoft-what-you-need-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8CRHo4fip7ImA9WxJVFU4.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-1320189308784761041</id><published>2009-07-01T05:40:00.000-07:00</published><updated>2009-07-02T05:47:45.436-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-02T05:47:45.436-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>AJAX.NET Professional Library Example</title><content type="html">&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Get total project example for &lt;/span&gt;&lt;span class="Apple-style-span"  style=" white-space: pre; font-family:Arial;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;AJAX.NET Professional Library&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" white-space: pre; font-family:Arial;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Test here.&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="https://www.box.net/shared/157l2cjb9s"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;https://www.box.net/shared/157l2cjb9s&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-1320189308784761041?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X4JYsM2offPcwfHRaE2_YRBG17Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X4JYsM2offPcwfHRaE2_YRBG17Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X4JYsM2offPcwfHRaE2_YRBG17Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X4JYsM2offPcwfHRaE2_YRBG17Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/ty5HXxNOqfc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/1320189308784761041/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=1320189308784761041" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1320189308784761041?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1320189308784761041?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/ty5HXxNOqfc/ajaxnet-professional-library-example.html" title="AJAX.NET Professional Library Example" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/07/ajaxnet-professional-library-example.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQFRXcyfip7ImA9WxJVFEk.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-2467199068032798600</id><published>2009-07-01T02:59:00.000-07:00</published><updated>2009-07-01T03:15:14.996-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-01T03:15:14.996-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>AJAX.Net Professional Library</title><content type="html">&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;1. Download AJAX Professional Library for Microsoft.NET 1.1&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://www.box.net/shared/eneh48e5zl"&gt;https://www.box.net/shared/eneh48e5zl&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;2. Download AJAX Professional Library for Microsoft.NET 2.0&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;a href="https://www.box.net/shared/9cy1qxb3h8"&gt;https://www.box.net/shared/9cy1qxb3h8&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;3. Download AJAX Professional JSON Library for Microsoft.NET 1.1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://www.box.net/shared/x1pdo1b3xz"&gt;https://www.box.net/shared/x1pdo1b3xz&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;4. Download AJAX Professional JSON Library for Microsoft.NET 2.0 &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;a href="https://www.box.net/shared/255mva92s7"&gt;https://www.box.net/shared/255mva92s7&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;You need to configure your web site with the web.config file as following.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;a href="https://www.box.net/shared/vja1s5ohrv"&gt;https://www.box.net/shared/vja1s5ohrv&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-2467199068032798600?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nmEg2coD2y-tdegEdX8z5U77bzo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nmEg2coD2y-tdegEdX8z5U77bzo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nmEg2coD2y-tdegEdX8z5U77bzo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nmEg2coD2y-tdegEdX8z5U77bzo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/DewOG2k5WOE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/2467199068032798600/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=2467199068032798600" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/2467199068032798600?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/2467199068032798600?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/DewOG2k5WOE/ajaxnet-professional-library.html" title="AJAX.Net Professional Library" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/07/ajaxnet-professional-library.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08NQHY4cSp7ImA9WxJVFEk.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-4804765777853759221</id><published>2009-07-01T02:46:00.000-07:00</published><updated>2009-07-01T02:51:31.839-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-01T02:51:31.839-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript" /><title>JavaScript Prototype Framework 1.6.0.3 (updated version)</title><content type="html">&lt;b&gt;You can get a nice overview of &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;JavaScript Prototype Framework&lt;/span&gt; here.&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.sergiopereira.com/articles/prototype.js.html"&gt;http://www.sergiopereira.com/articles/prototype.js.htm&lt;/a&gt;&lt;a href="http://www.sergiopereira.com/articles/prototype.js.html"&gt;l&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;You can get the &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;prototype 1.6.0.3.js&lt;/span&gt; directly from here.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://www.box.net/shared/aqskzcb0m4"&gt;https://www.box.net/shared/aqskzcb0m4&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-4804765777853759221?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZCAVZymo-WEsTzIyze9GjwimCwk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZCAVZymo-WEsTzIyze9GjwimCwk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZCAVZymo-WEsTzIyze9GjwimCwk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZCAVZymo-WEsTzIyze9GjwimCwk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/AB9kUd2wOgg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/4804765777853759221/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=4804765777853759221" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4804765777853759221?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4804765777853759221?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/AB9kUd2wOgg/javascript-prototype-framework-1603.html" title="JavaScript Prototype Framework 1.6.0.3 (updated version)" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/07/javascript-prototype-framework-1603.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEGQ3s7cCp7ImA9WxJWFko.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-8352440198238366423</id><published>2009-06-22T04:48:00.000-07:00</published><updated>2009-06-22T05:43:42.508-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-22T05:43:42.508-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>AJAX.NET Professional Library setup quick guide</title><content type="html">&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;AJAX .Net Wrapper quick usage guide&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;&lt;b&gt;&lt;div&gt;Step 1 - &lt;/div&gt;&lt;div&gt;   &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;Create a reference to the ajax.dll file. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;   &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Download it from the link - &lt;a href="https://www.box.net/shared/pzefg8bg4f"&gt;https://www.box.net/shared/pzefg8bg4f&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;Step 2 -&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Set up the HttpHandler In the web.config, set up the HttpHandler, like:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;(configuration)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;  (system.web)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;    (httpHandlers)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;   (add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;    (/httpHandlers)  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;    ...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;  (system.web)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;(/configuration)&lt;/span&gt;  ----**&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;&lt;b&gt;Step 3 -&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;In the Page_Load event, call the following function:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;'vb.net&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;Public Class Index &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;  Inherits System.Web.UI.Page&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;  Private Sub Page_Load(sender As Object, e As EventArgs) Handles MyBase.Load&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;    Ajax.Utility.RegisterTypeForAjax(GetType(Index))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;  '...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;  end sub&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;  '...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;End Class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//C#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;public class Index : System.Web.UI.Page{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;   private void Page_Load(object sender, EventArgs e){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;      Ajax.Utility.RegisterTypeForAjax(typeof(Index));      &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;      //...&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;   }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;   //...  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;&lt;b&gt;Step 4 -&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;In the codebehind of your page, add functions (like you normally would) that you'd like to be able to asynchrounsly called by client-side scripting.  Mark these functions with the Ajax.JavascriptMethodAttribute():&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//C#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;[Ajax.AjaxMethod()]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;public int ServerSideAdd(int firstNumber, int secondNumber)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;return firstNumber + secondNumber;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;'VB.Net&lt;/div&gt;&lt;div&gt;&lt;ajax.ajaxmethod()&gt; _&lt;/ajax.ajaxmethod()&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;Public Function ServerSideAdd(ByVal firstNumber As Integer, ByVal secondNumber As &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;Integer) As Integer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt; Return firstNumber + secondNumber&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;End Function&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The wrapper will automatically create a JavaScript function named "ServerSideAdd" &lt;/div&gt;&lt;div&gt;which accepts to parameters.  When called, this server-side function will be called and the result returned.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#330099;"&gt;Step 5 -&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Using JavaScript, you can invote the ServerSideAdd function like you would any other JavaScript function.  You can call it using the two parameters, or optionally pass a call back function.  The name of the function is, by default, &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;(name of class).(name of server side function) &lt;/span&gt;--- **&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;name&gt; such as Index.ServerSideAdd:&lt;/name&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;alertIndex.ServerSideAdd(100,99));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;OR&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;Index.ServerSideAdd(100,99, ServerSideAdd_CallBack);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;function ServerSideAdd_CallBack(response){alert(response.value);}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The response exposes three properties, error, value and request.&lt;/div&gt;&lt;div&gt;Note that you can return more complex objects that simple types.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;---** You need to use "&lt;" instead of "(" and "&gt;" instead of ")".&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-8352440198238366423?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Hy9_YErMcV2Q6SSAzzxRg1FLj3w/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Hy9_YErMcV2Q6SSAzzxRg1FLj3w/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Hy9_YErMcV2Q6SSAzzxRg1FLj3w/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Hy9_YErMcV2Q6SSAzzxRg1FLj3w/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/r1rk6gbYhx4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/8352440198238366423/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=8352440198238366423" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/8352440198238366423?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/8352440198238366423?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/r1rk6gbYhx4/ajaxnet-professional-library-setup.html" title="AJAX.NET Professional Library setup quick guide" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/ajaxnet-professional-library-setup.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MMQH44fSp7ImA9WxJWFUg.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-2401350416788850585</id><published>2009-06-20T20:21:00.000-07:00</published><updated>2009-06-20T20:38:01.035-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-20T20:38:01.035-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript" /><title>Advanced Javascript: Objects, Arrays, and Array-Like objects</title><content type="html">&lt;span class="Apple-style-span"   style="  ;font-family:verdana;font-size:11px;"&gt;&lt;p face="verdana, helvetica, arial, sans-serif"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own.An object is just a special kind of data, with a collection of properties and methods.Let's illustrate with an example: A person is an object. Properties are the values associated with the object. The persons' properties include name, height, weight, age, skin tone, eye color, etc. All persons have these properties, but the values of those properties will differ from person to person. Objects also have methods. Methods are the actions that can be performed on objects. The persons' methods could be eat(), sleep(), work(), play(), etc.&lt;/span&gt;&lt;/p&gt;&lt;p face="verdana, helvetica, arial, sans-serif"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 48px; "&gt;&lt;a href="http://nfriedly.com/techblog/2009/06/advanced-javascript-objects-arrays-and-array-like-objects/"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://nfriedly.com/techblog/2009/06/advanced-javascript-objects-arrays-and-array-like-objects/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-2401350416788850585?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zlhC4Lbi27xb1MqZ76_JRP5_Nz0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zlhC4Lbi27xb1MqZ76_JRP5_Nz0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zlhC4Lbi27xb1MqZ76_JRP5_Nz0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zlhC4Lbi27xb1MqZ76_JRP5_Nz0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/TCLJbKXYkbk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/2401350416788850585/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=2401350416788850585" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/2401350416788850585?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/2401350416788850585?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/TCLJbKXYkbk/advanced-javascript-objects-arrays-and.html" title="Advanced Javascript: Objects, Arrays, and Array-Like objects" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/advanced-javascript-objects-arrays-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQERnw-eyp7ImA9WxJXFEU.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-4468910121729743534</id><published>2009-06-08T10:04:00.000-07:00</published><updated>2009-06-08T10:48:27.253-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-08T10:48:27.253-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>Asynchronous client script callbacks trip Overview</title><content type="html">&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Client/Browser&lt;/b&gt;&lt;/div&gt;&lt;div&gt;1. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Web page first requested&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Web Server/Server Side&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Event Reference generated via GetCallbackEventReference method.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;3. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;StartAsyncCall Javascript method constructed and registered on page &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;via RegisterClientScriptBlock method.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Client/Browser&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;4. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Web page displayed to user (Contains Javascript code to initiate async callback event)&lt;/div&gt;&lt;div&gt;&lt;div&gt;5. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Invoke async callback via StartAsyncCall Javascript method&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Web Server/Server Side&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;6. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;RaiseCallbackEvent method is tiggered, passing in the arg parameter.&lt;/div&gt;&lt;div&gt;&lt;div&gt;7. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;GetCallbackResult method is triggered, returning a string result to the client/browser.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Client/Browser&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;8. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Executes the OnServerCallComplete Javascript method, passing the result of &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;the GetCallbackResult method as arg and the call context as ctx.&lt;/div&gt;&lt;div&gt;&lt;div&gt;9. &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Update browser display with results of async callback.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: Here &lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;StartAsyncCall is a JavaScript function in Serverside&lt;/li&gt;&lt;li&gt;OnServerCallComplete is a JavaScript function in client side.&lt;/li&gt;&lt;li&gt;GetCallbackResult and RaiseCallbackEvent methods are the members for ICallbackEventHandler Interface.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-4468910121729743534?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eGxkaIrX9VNzdi3TXPYl3MZRAkU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eGxkaIrX9VNzdi3TXPYl3MZRAkU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eGxkaIrX9VNzdi3TXPYl3MZRAkU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eGxkaIrX9VNzdi3TXPYl3MZRAkU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/1-KHzAR2Jgg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/4468910121729743534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=4468910121729743534" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4468910121729743534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4468910121729743534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/1-KHzAR2Jgg/asynchronous-client-script-callbacks_08.html" title="Asynchronous client script callbacks trip Overview" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/asynchronous-client-script-callbacks_08.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8ER30zeip7ImA9WxJXFUk.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-9097637871508523278</id><published>2009-06-07T22:11:00.000-07:00</published><updated>2009-06-09T03:36:46.382-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T03:36:46.382-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>Asynchronous client script callbacks</title><content type="html">&lt;div&gt;ASP.NET 2.0 contains a technology called Asynchronous Client Script Callbacks, or simply callbacks for a shortened name. As the name suggests, this offers the ability for ASP.NET to directly support the inclusion of JavaScript code that enables asynchronous calls to the server for processing—that is, to execute a server method asynchronously from within the browser and have ASP.NET instruct the browser to execute a JavaScript callback method when the server method completes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;How its protential for your own application?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The answer is twofold.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ First, there is a newly introduced interface named the ICallbackEventHandler interface.&lt;/div&gt;&lt;div&gt;There is another interface called the ICallbackContainer interface that indicates that a class&lt;/div&gt;&lt;div&gt;can generate its own script to invoke a callback, but it is not the primary interface used when&lt;/div&gt;&lt;div&gt;dealing with Asynchronous Client Script Callbacks and will be detailed later in this chapter.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Second, in a change from ASP.NET 1.0/1.1, all client scripting functions are now housed in a&lt;/div&gt;&lt;div&gt;client script object (which is of type System.Web.UI.ClientScriptManager) that exists as a&lt;/div&gt;&lt;div&gt;member within every ASP.NET page object. This houses the required functions to support the&lt;/div&gt;&lt;div&gt;client-side generation and manipulation of JavaScript code, in particular to work in conjunction&lt;/div&gt;&lt;div&gt;with your server-side methods to be called asynchronously.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What is ICallbackEventHandler Interface?&lt;/div&gt;&lt;div&gt;&lt;div&gt;The ICallbackEventHandler interface is the primary mechanism for enabling pages or controls to&lt;/div&gt;&lt;div&gt;participate in the Asynchronous Client Script process. By implementing this interface within a control or page, server code can generate the relevant JavaScript code that allows asynchronous interaction between the client browser and the server. This interface has two methods associated with it:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Interface Method/&lt;/b&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/div&gt;&lt;div&gt;string GetCallbackResult( ); / This method returns the result of the &lt;span class="Apple-tab-span" style="white-space:pre"&gt;        &lt;/span&gt;callback event/asynchronous call to the client browser.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;void RaiseCallbackEvent(string &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;span class="Apple-style-span" style="white-space: normal; "&gt;eventArgument); &lt;span class="Apple-tab-span" style="white-space: pre; "&gt; / &lt;span class="Apple-style-span" style="white-space: normal; "&gt;The method that is called asynchronously to handle the callback event. The eventArgument parameter&lt;span class="Apple-style-span" style="white-space: pre;"&gt; &lt;/span&gt;contains any data passed in via the callback event/method.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;A web control or web page that intends to provide support for Asynchronous Client Script Callbacks needs to implement this interface and provide implementations for the two interface methods described in the preceding table.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The reason there are two methods is to provide support for asynchronous datasources, a new feature in .NET 2.0. An asynchronous datasource will typically initiate a request to get data and then, at some later stage, process the results of the initial call when they become available. Having two methods to deal with asynchronous callbacks from the client provides this server-side support for asynchronous datasources.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;These events are central to all callback events. This means that if a page implements this interface in order to act as the recipient for Asynchronous Client Script Callback events, the RaiseCallbackEvent method will be invoked for all client script callbacks defined within the page, whether one or one hundred. This has implications for complex situations where you have multiple ways of triggering a callback method from the client and multiple types of data associated with each event that are passed with each call. This will become more apparent as you examine some more complex scenarios that utilize Asynchronous Client Script Callback functionality.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more information please visit - &lt;/div&gt;&lt;br /&gt;&lt;div&gt;"&lt;a href="http://www.simple-talk.com/dotnet/asp.net/asynchronous-client-script-callbacks/"&gt;http://www.simple-talk.com/dotnet/asp.net/asynchronous-client-script-callbacks/&lt;/a&gt;"&lt;/div&gt;&lt;div&gt;"&lt;a href="http://www.simple-talk.com/content/print.aspx?article=200"&gt;http://www.simple-talk.com/content/print.aspx?article=200&lt;/a&gt;"&lt;/div&gt;&lt;div&gt;"&lt;a href="http://msdn.microsoft.com/en-us/magazine/cc163941.aspx"&gt;http://msdn.microsoft.com/en-us/magazine/cc163941.aspx&lt;/a&gt;"&lt;/div&gt;&lt;div&gt;"&lt;a href="http://www.codeproject.com/KB/aspnet/ClientCallbackByNasirAliKhan.aspx?display=Print"&gt;http://www.codeproject.com/KB/aspnet/ClientCallbackByNasirAliKhan.aspx?display=Print&lt;/a&gt;"&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-9097637871508523278?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GVVJRI4CjPLIX95SpP82BZ0y28Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GVVJRI4CjPLIX95SpP82BZ0y28Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GVVJRI4CjPLIX95SpP82BZ0y28Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GVVJRI4CjPLIX95SpP82BZ0y28Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/VF3YAN6XU5Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/9097637871508523278/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=9097637871508523278" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/9097637871508523278?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/9097637871508523278?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/VF3YAN6XU5Q/asynchronous-client-script-callbacks.html" title="Asynchronous client script callbacks" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/asynchronous-client-script-callbacks.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAGSX09fyp7ImA9WxJXEE4.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-6098390919115520076</id><published>2009-06-03T05:04:00.000-07:00</published><updated>2009-06-03T05:55:28.367-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-03T05:55:28.367-07:00</app:edited><title>What is RSS?</title><content type="html">&lt;div style="text-align: left;"&gt;RSS (Really Simple Syndication) is a format used to deliver information from websites and pages that get updated regularly. An RSS document (which is called feed) contains either a summary or the full content from a website.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;The main benefit of RSS is that it enables people to stay connected with their favorite websites without having to visit them. Once you subscribe to a particular RSS feed, you will automatically receive updates from the website that publishes the feed, whenever they release new content. The video below illustrates the process.&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;Before you start subscribing to the RSS feeds of your favorite sites you will need to have an RSS reader. Below you will find a list of web-based and free RSS readers that you can use:&lt;br /&gt;&lt;a href="http://reader.google.com/"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://reader.google.com/"&gt;Google Reader&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bloglines.com/"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.bloglines.com/"&gt;Bloglines&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newsgator.com/"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.newsgator.com/"&gt;Newsgator&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once you have your RSS reader working you can just head to your favorite website and subscribe by clicking on the RSS icon. Notice that most recent web browsers already identify RSS feeds, so you will be able to see the RSS icon ( &lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;img src="http://rssday.org/wp-content/uploads/rss16.png" alt="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; padding-top: 0px; padding-right: 10px; padding-bottom: 5px; padding-left: 0px; " /&gt;) both on the Navigation Bar of your browser and on the page itself, as the screenshot below illustrates.&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="line-height: 20px;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_xi7Jx3X0fB4/SiZoR05gWHI/AAAAAAAAAEI/x9mrXPI-qn4/s1600-h/rssexample1.png"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 281px; " src="http://4.bp.blogspot.com/_xi7Jx3X0fB4/SiZoR05gWHI/AAAAAAAAAEI/x9mrXPI-qn4/s320/rssexample1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5343072663388575858" /&gt;&lt;/a&gt;&lt;div style="text-align: left;"&gt;Once you click on the RSS icon or on a “Subscribe” link you will be redirected to a page with instructions on how to subscribe to that particular RSS feed using your RSS reader. Usually it is a matter of two clicks.Sometimes you might end up seeing a strange page with several lines of code. That is the raw XML file of the RSS feed, and in order to subscribe to that feed you will need to copy the URL and paste it on your RSS reader, after clicking on “Add subscription” or similar.&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_xi7Jx3X0fB4/SiZoKWNWLLI/AAAAAAAAAEA/dtXRiEtvgOY/s1600-h/rssreaderexample.png"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 320px; height: 234px; " src="http://4.bp.blogspot.com/_xi7Jx3X0fB4/SiZoKWNWLLI/AAAAAAAAAEA/dtXRiEtvgOY/s320/rssreaderexample.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5343072534891211954" /&gt;&lt;/a&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The image above illustrates the standard look of an RSS reader. As you can see you will have a sidebar listing all your subscriptions (organized or not into folders and sub-folders) and a main area that will display the content of the subscriptions. This structure enables you to read the content of websites and news feeds much more efficiently, since you can access and manage them from a single location.&lt;p&gt;&lt;/p&gt;&lt;p style="text-align: left;color: rgb(102, 102, 102); padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 20px; "&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;Now you are ready to start using RSS feeds from all over the Internet! If you want to know more about it just check the &lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/RSS_(file_format)" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(34, 85, 170); text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;Wikipedia entry for RSS&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="text-align: center;color: rgb(102, 102, 102); padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 20px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-6098390919115520076?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QPDNPvBseZVi_EdVaYYpCW4hQFE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QPDNPvBseZVi_EdVaYYpCW4hQFE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QPDNPvBseZVi_EdVaYYpCW4hQFE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QPDNPvBseZVi_EdVaYYpCW4hQFE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/yUeK5FVotUY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/6098390919115520076/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=6098390919115520076" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/6098390919115520076?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/6098390919115520076?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/yUeK5FVotUY/what-is-rss.html" title="What is RSS?" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_xi7Jx3X0fB4/SiZoR05gWHI/AAAAAAAAAEI/x9mrXPI-qn4/s72-c/rssexample1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/what-is-rss.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0AFSHY6eCp7ImA9WxJXEE4.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-7889856328930612441</id><published>2009-06-01T19:22:00.000-07:00</published><updated>2009-06-03T05:21:59.810-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-03T05:21:59.810-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>How can we access Web Service?</title><content type="html">&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;First you construct a simple user interface to facilitate this:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_xi7Jx3X0fB4/SiSPZh2YHqI/AAAAAAAAADg/a63iMoeyedI/s1600-h/4.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 177px;" src="http://1.bp.blogspot.com/_xi7Jx3X0fB4/SiSPZh2YHqI/AAAAAAAAADg/a63iMoeyedI/s320/4.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5342552726714195618" /&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;This HTML document simply contains two text fields that accept the integer arguments and a button to calculate&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;the result of the addition of the two arguments. The button contains an onclick handler, which&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;points to a JavaScript function. This function will execute your asynchronous call to your web service.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;Next, have a look at the code of your web service, which is extremely simple and should be very familiar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;to all developers who have created web services. The web service itself was created using the endpoint&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;of AsyncService.asmx and contains a method, more specifically a WebMethod, called Adder:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Collections;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Linq;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Web;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Web.Services;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Web.Services.Protocols;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;using System.Xml.Linq;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;/// &lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;/// Summary description for AsyncService&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;/// &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;[WebService(Namespace = "http://tempuri.org/")]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;// [System.Web.Script.Services.ScriptService]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;public class AsyncService : System.Web.Services.WebService {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    public AsyncService () {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        //Uncomment the following line if using designed components &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        //InitializeComponent(); &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    [WebMethod]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    public string HelloWorld() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        return "Hello World";&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    [WebMethod]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    public int Adder(int arg1, int arg2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        return arg1 + arg2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;Finally, examine the client-side code to call the web service shown previously:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;function ExecWebService()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;            if (xmlHttpObj)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;            {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                var disp = document.getElementById("spnDetailDisplay");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                var ctlVal1 = document.getElementById("val1");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                var ctlVal2 = document.getElementById("val2");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                // We want this request synchronous&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                xmlHttpObj.open("POST","http://" + location.host +"/Test/AsyncService.asmx/Adder", true);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                xmlHttpObj.onreadystatechange = function()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                    if (xmlHttpObj.readyState == 4)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                    {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        // If the request was ok (ie equal to a Http Status code of 200)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        if (xmlHttpObj.status == 200)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                            var xmlDoc = xmlHttpObj.responseXML;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                            var result = xmlDoc.lastChild.childNodes[0].nodeValue;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                            disp.childNodes[0].nodeValue = "Result: " + result;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        } &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                            var fault = xmlHttpObj.responseText;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                            alert("Error Occurred! \n\n" + fault);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                        }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                // Execute the request&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                xmlHttpObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;                xmlHttpObj.send("arg1=" + ctlVal1.value + "&amp;amp;arg2=" + ctlVal2.value);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;            }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;        }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-7889856328930612441?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fXkSB58biGu46PksQGrh7O9T_I8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fXkSB58biGu46PksQGrh7O9T_I8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fXkSB58biGu46PksQGrh7O9T_I8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fXkSB58biGu46PksQGrh7O9T_I8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/3un-e6rT1NI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/7889856328930612441/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=7889856328930612441" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7889856328930612441?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7889856328930612441?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/3un-e6rT1NI/how-can-we-access-web-service.html" title="How can we access Web Service?" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_xi7Jx3X0fB4/SiSPZh2YHqI/AAAAAAAAADg/a63iMoeyedI/s72-c/4.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/how-can-we-access-web-service.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QHQnsyfSp7ImA9WxJQGU0.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-7542855902149576054</id><published>2009-06-01T18:41:00.000-07:00</published><updated>2009-06-01T19:22:13.595-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-01T19:22:13.595-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>HTTP Handlers Overview</title><content type="html">&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Amore typical approach to handling these requests is to use an HTTP handler. Ahandler has the ability to&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;respond to requests with more direct control over the response data. Essentially, an HTTP handler exists&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;very early in the ASP.NET processing pipeline and can deal directly with requests without having to worry&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;about HTML data being generated by the page and the unnecessary burden of the entire page lifecycle.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Additionally, the handler need not be concerned with having the initial request be a properly formed page&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;but can instead have it be a custom formatted message that has meaning within the context of your application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Often, this is an XML document used to transfer data between the client and the server.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); "&gt;Using a HTTP Handler&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-weight: bold; font-family:'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-weight: bold; font-family:'times new roman';"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;To demonstrate the use of a HTTP handler to accept arguments sent from an XMLHttpRequest object,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;you first define the user interface within the web page, as shown in the following code. This simply&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;shows a drop-down list with a list of three customers. When one of the customers is selected, that customer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;ID is used as part of the asynchronous request to request a specific set of data pertaining to that&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;customer’s details only:&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_xi7Jx3X0fB4/SiSL8aTSXwI/AAAAAAAAADY/Wme92NzENQE/s1600-h/3.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 129px;" src="http://2.bp.blogspot.com/_xi7Jx3X0fB4/SiSL8aTSXwI/AAAAAAAAADY/Wme92NzENQE/s320/3.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5342548927936880386" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" font-weight: bold;font-family:'times new roman';"&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;You also provide an implementation of the JavaScript function named LoadCustomer() referenced in&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;&lt;div&gt;the onchange attribute of the select element as follows:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;function LoadCustomers()&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            var xmlHttpObj;&lt;/div&gt;&lt;div&gt;            xmlHttpObj= CreateXmlHttpRequestObject();&lt;/div&gt;&lt;div&gt;            if (xmlHttpObj)&lt;/div&gt;&lt;div&gt;            {&lt;/div&gt;&lt;div&gt;                xmlHttpObj.open("GET","http://" + location.host + "/Test/DataFile.xml", false);&lt;/div&gt;&lt;div&gt;                xmlHttpObj.send(null)&lt;/div&gt;&lt;div&gt;                &lt;/div&gt;&lt;div&gt;                // If the request was ok (ie. equal to a Http Status code of 200)&lt;/div&gt;&lt;div&gt;                if (xmlHttpObj.status == 200)&lt;/div&gt;&lt;div&gt;                {&lt;/div&gt;&lt;div&gt;                    var xmlDoc = xmlHttpObj.responseXML;&lt;/div&gt;&lt;div&gt;                    // Our list of &lt;customer&gt; nodes selected using the X Path argument&lt;/customer&gt;&lt;/div&gt;&lt;div&gt;                    //var nodes = xmlDoc.selectNodes(“//Customers/Customer”);&lt;/div&gt;&lt;div&gt;                    var nodes = xmlDoc.selectNodes("//Customers/Customer/Lastname/text()");&lt;/div&gt;&lt;div&gt;                    // Obtain a reference to the select drop list control.                    &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;var ctrl = document.getElementById("ddlCustomers");                    &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;for (var i=0; i less then nodes.length; i++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;                    {                       &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt; // Get the lastname element from our XML data document                        &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;var lastName = nodes[i].nodeValue;                        &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;// Create a new  node.                        &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;var htmlCode = document.createElement('option');                        &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;// Add the new  node to our  drop list&lt;/div&gt;&lt;div&gt;                        &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;ctrl.options.add(htmlCode);&lt;/div&gt;&lt;div&gt;                       &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;// Set the  display text and value;&lt;/div&gt;&lt;div&gt;                        &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;htmlCode.text = lastName;&lt;/div&gt;&lt;div&gt;                        &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;htmlCode.value = lastName;&lt;/div&gt;&lt;div&gt;                    &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;                } &lt;/div&gt;&lt;div&gt;                else&lt;/div&gt;&lt;div&gt;                {&lt;/div&gt;&lt;div&gt;                    alert('There was a problem accessing the Customer data on the server.!');&lt;/div&gt;&lt;div&gt;                }           &lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Finally, the implementation of the server-side HTTP handler itself is shown in the following code block.&lt;/div&gt;&lt;div&gt;This is the handler that receives the asynchronous call from your XMLHttpRequest object, extracts the&lt;/div&gt;&lt;div&gt;customer number or ID, and then uses that to return an XML document containing only that customer’s&lt;/div&gt;&lt;div&gt;name and email address. This code resides within the AsyncRequestHandler.ashx file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;using System;&lt;/div&gt;&lt;div&gt;using System.Web;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public class AsyncRequestHandler : IHttpHandler {&lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    public void ProcessRequest (HttpContext context) {&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;        // Grab the URL parameters&lt;/div&gt;&lt;div&gt;        string param = context.Request.QueryString["arg"];&lt;/div&gt;&lt;div&gt;        const string xmlData = @"&lt;/div&gt;&lt;div&gt;                                 &lt;root&gt;&lt;customer&gt;&lt;name&gt;{0}&lt;/name&gt;&lt;email&gt;{1}&lt;/email&gt;&lt;/customer&gt;&lt;/root&gt;";&lt;/div&gt;&lt;div&gt;        string returnXML = null;&lt;/div&gt;&lt;div&gt;        switch (param)&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            case "1":&lt;/div&gt;&lt;div&gt;                returnXML = string.Format(xmlData, "Big Bob", "big@bob.com");&lt;/div&gt;&lt;div&gt;                break;&lt;/div&gt;&lt;div&gt;            case "2":&lt;/div&gt;&lt;div&gt;                returnXML = string.Format(xmlData, "Small Sammy","small@sammy.com");&lt;/div&gt;&lt;div&gt;                break;&lt;/div&gt;&lt;div&gt;            case "3":&lt;/div&gt;&lt;div&gt;                returnXML = string.Format(xmlData, "Large Larry","large@larry.com");&lt;/div&gt;&lt;div&gt;            break;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;               &lt;/div&gt;&lt;div&gt;        context.Response.ContentType = "application/xml";&lt;/div&gt;&lt;div&gt;        context.Response.Write(returnXML);&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;    public bool IsReusable {&lt;/div&gt;&lt;div&gt;        get {&lt;/div&gt;&lt;div&gt;            return false;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-7542855902149576054?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bT9Q9U4TcWBF-ILbzshuH3Pakw8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bT9Q9U4TcWBF-ILbzshuH3Pakw8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bT9Q9U4TcWBF-ILbzshuH3Pakw8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bT9Q9U4TcWBF-ILbzshuH3Pakw8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/gNwsO2VGubc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/7542855902149576054/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=7542855902149576054" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7542855902149576054?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/7542855902149576054?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/gNwsO2VGubc/http-handlers-overview.html" title="HTTP Handlers Overview" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_xi7Jx3X0fB4/SiSL8aTSXwI/AAAAAAAAADY/Wme92NzENQE/s72-c/3.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/http-handlers-overview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4FRXkzeyp7ImA9WxJQGU0.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-1641013839077919488</id><published>2009-06-01T17:19:00.000-07:00</published><updated>2009-06-01T17:51:54.783-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-01T17:51:54.783-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>Document Object Model (DOM) Overview</title><content type="html">&lt;span class="Apple-style-span" style="font-family: arial; font-size: 13px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Definition:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Document Object Model (DOM), a programming interface specification being developed by the World Wide Web Consortium (&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci213331,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;W3C&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;), lets a programmer create and modify &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212286,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;HTML&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; pages and &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci213404,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XML&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://whatis.techtarget.com/definition/0,,sid9_gci211982,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;document&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;s as full-fledged program &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212680,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;s. Currently, HTML (Hypertext Markup Language) and XML (Extensible Markup Language) are ways to express a document in terms of a data structure. As program objects, such documents will be able to have their contents and data "hidden" within the object, helping to ensure control over who can manipulate the document. As objects, documents can carry with them the object-oriented procedures called &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci212559,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;method&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;s. DOM is a strategic and open effort to specify how to provide programming control over documents. It was inspired in part by the advent of the new HTML capabilities generally called &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212022,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;dynamic HTML&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and as a way to encourage consistent &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchwindevelopment.techtarget.com/sDefinition/0,,sid8_gci211708,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;browser&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; behavior with Web pages and their elements.&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The Document Object Model offers two levels of interface implementation: DOM Core, which supports XML and is the base for the next level, and DOM HTML, which extends the model to HTML documents. Here are some highlights:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Any HTML or XML element (with the possibility of a few exceptions) will be individually addressable by programming.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The specification will be language-independent. The specification, when available, will be described using the interface definition language (&lt;/span&gt;&lt;/span&gt;&lt;a href="http://whatis.techtarget.com/definition/0,,sid9_gci212314,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;IDL&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;) from the industry open standard &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsqlserver.techtarget.com/sDefinition/0,,sid87_gci213865,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;CORBA&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;In addition, the interface will be described in terms of the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212415,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Java&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;programming language and ECMAScript, an industry-standard &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchenterpriselinux.techtarget.com/sDefinition/0,,sid39_gci212948,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;language based on &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchsoa.techtarget.com/sDefinition/0,,sid26_gci212418,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;JavaScript&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and JScript.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;DOM is not to be confused with Microsoft's &lt;/span&gt;&lt;/span&gt;&lt;a href="http://searchwinit.techtarget.com/sDefinition/0,,sid1_gci211823,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Component Object Model&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;(COM) or &lt;/span&gt;&lt;/span&gt;&lt;a href="http://whatis.techtarget.com/definition/0,,sid9_gci213883,00.html" class="inline" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Distributed Component Object Model&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; (DCOM). COM and CORBA are language-independent ways to specifiy objects and could be used to create DOM objects (documents) just as specific languages like Java could.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Progress of the Document Object Model specification can be followed at the W3C Web site.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Overview:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0); font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-weight: normal; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;To manipulate an XML document you first load it into your computer's memory using an XML parser. As stated above, the parser discussed here it the Msxml parser from Microsoft. Once the XML document is loaded, its data can be manipulated using a DOM.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;A DOM treats the XML document as a &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;tree&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;. The &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;DocumentElement&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; is the top or &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;root&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; of the tree. This root element can have one or more &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;child nodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; which represent the branches of the tree.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The four main objects exposed by a DOM are the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;DOMDocument, XMLDOMNode, XMLDOMNodeList&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNamedNodeMap&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; which are all discussed below in subsequent sections.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;For most XML documents, the most common types of nodes are element, attribute, and text. Attributes differ from the other node types because they are not considered child nodes of a parent. A separate programming interface, the &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNamedNodeMap&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, is used for attributes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman'; font-size: 16px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Creating a DOM:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Using the XML DOM begins when you create a DOMDocument object. You can then load, parse, navigate, and manipulate XML files. The VB code to create a DOMDocument is:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc = New DOMDocument&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="center" style="text-align: left;"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Loading and Saving Data:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Use the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Load&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; or &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;LoadXML&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; methods to load an XML file into the DOM. The load method uses a path or url to an XML file. The loadXML method loads a string containing the XML data. After loading, XMLDoc, contains a tree consisting of the parsed contents of reports.xml.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;xmlLDoc.load("http://xmlfiles/reports.xml")&lt;br /&gt;xmlDoc.load("c:\temp\reports.xml")&lt;br /&gt;&lt;br /&gt;xmlDoc.loadXML("&lt;customer&gt;&lt;first_name&gt;Joe&lt;/first_name&gt;&lt;br /&gt;    &lt;last_name&gt;Smith&lt;/last_name&gt;&lt;/customer&gt;")&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;To save a parsed XML document to a file use the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Save&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; method. Save can take a file name as a string.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;xmlDoc.save("c:\temp\reports.xml")&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="parse"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Load and Parse Flags:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;File loading and parsing is done asynchronously by default. This means your app is free to do other work while the file is being loaded. Also by default, any &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;well formed&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; XML document can be loaded.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;You can change this behavior by setting a few properties. Here, the XML is loaded synchronously, and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;validated&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; against a DTD. Also, any external references in the DTD are resloved.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.validateOnParse = True&lt;br /&gt;xmlDoc.resolveExternals = True&lt;br /&gt;xmlDoc.load("reports.xml")&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="error"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Accessing Document and Error Information:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;You can retrieve the DTD used by the XML document, the path or URL of the file that was loaded and a string containing the entire contents of the XML document.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;You can also get detailed information on errors that occurred during parsing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim mydoctype as IXMLDOMDocumentType&lt;br /&gt;&lt;br /&gt;xmlDoc.load("reports.xml")&lt;br /&gt;&lt;br /&gt;Set MyDocType = xmlDoc.doctype&lt;br /&gt;MsgBox (mydoctype.name)      'Display the DTD used.&lt;br /&gt;MsgBox (xmlDoc.url)               'Path or url of the XML file.&lt;br /&gt;&lt;br /&gt;If xmlDoc.parseError.errorCode &lt;&gt; 0 Then&lt;br /&gt;    MsgBox ("A parse error occurred.")&lt;br /&gt;Else&lt;br /&gt;    MsgBox xmlDoc.documentElement.xml    'Display the actual XML data.&lt;br /&gt;End If&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Here is some more error information that is available:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Error Property&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;errorCode&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Error code of the last parse error&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;filepos&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;absolute file position of the error&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;line&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;line the error occurred on&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;linepos&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;position with in the line&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;reason&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;error description&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;srcText&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;line of XML that contains the error&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="accessdom"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Accessing the DOM Tree:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;You can access the tree starting at the root and walking down the tree or by querying for a specific node. You navigate to the root element using the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;documentElement&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property which returns the root element as an &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; object.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim root As IXMLDOMElement&lt;br /&gt;Dim child As IXMLDOMNode&lt;br /&gt;&lt;br /&gt;xmlDoc.load("reports.xml")&lt;br /&gt;&lt;br /&gt;'Set root to the root element collection.&lt;br /&gt;Set root = xmlDoc.documentElement&lt;br /&gt;&lt;br /&gt;'Walk from the root to each of its child nodes.&lt;br /&gt;For Each child In root.childNodes&lt;br /&gt;    MsgBox child.text&lt;br /&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;To navigate to a specific node in the tree use the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;getElementsByTagName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; method. This method takes a string containing a specific tag name and returns all element nodes with this tag name.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim ElemList As IXMLDOMNodeList&lt;br /&gt;Dim xmlDoc As New DomDocument&lt;br /&gt;&lt;br /&gt;xmlDoc.load("reports.xml")&lt;br /&gt;Set ElemList = xmlDoc.getElementsByTagName("AUTHOR")&lt;br /&gt;For i=0 To (ElemList.length -1)&lt;br /&gt;    MsgBox ElemList.item(i).xml&lt;br /&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="createnodes"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Creating Nodes:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The DOMDocument object provides a generic &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;createNode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; method that lets you create nodes by supplying a node type, name, and namespaceURI. I say &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;generic&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; because it also provides individual methods to create most of the following specific node types.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="nodetypes"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node Type&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Value&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Element&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node is an Element&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Attribute&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node is an Attritute of an element&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Text&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node represents the text content of a tag&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Cdata_Section&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;A CDATA section in the XML source. CDATA sections escape text that would otherwise be interpreted as markup.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Entity_Reference&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;A reference to an entity in the XML document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Entity&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node represents an expanded entity&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Processing_Instruction&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;A processing instruction from the XML document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Comment&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;8&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node represents a comment in the XML document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;9&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Represents a document object, which, as the root of the document tree, provides access to the entire XML document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Document_Type&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Represents the document type declaration (DTD, indicated by the tag&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Document_Fragment&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;11&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;A document fragment node associates a node or subtree with a document without actually being contained within the document&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node_Notation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top" align="center"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Represents a notation in the document type declaration (DTD)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Here's an example of creating an &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;attribute&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; node:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DomDocument&lt;br /&gt;Dim MyNode As IXMLDOMNode&lt;br /&gt;&lt;br /&gt;xmlDoc.load("C:\books.xml")&lt;br /&gt;Set MyNode = xmlDoc.createNode(2, "XML", "")&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div align="center"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="XMLDOMNode"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;table class="TableShaded" style="color: white; background-color: rgb(246, 246, 246); font-weight: bold; font-style: normal; padding-top: 3px; padding-left: 3px; padding-right: 3px; padding-bottom: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(246, 246, 246); border-right-color: rgb(246, 246, 246); border-bottom-color: rgb(246, 246, 246); border-left-color: rgb(246, 246, 246); width: 100%; text-indent: 5px; "&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNode&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; object is the main object within a DOM. The &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;DOMDocument&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; object is itself an XMLDOMNode. So are the members of node lists and named node maps which are discussed later.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="nodeinfo"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Accessing Node Information&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;The XMLDOMNode object has several properties which provide info about a node. Here are the simpler ones:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="25%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node Property&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;hasChildNodes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;True if this node has children&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;namespaceURI&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns the URI (universal resource identifier) for the namespace (the "uuu" portion of the namespace declaration xmlns:nnn="uuu").&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;parsed&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;True if the node and all descendants have been parsed and instantiated.&lt;br /&gt;&lt;br /&gt;During asynchronous access, not all of the document tree may be available. Before performing XSL transformations or pattern-matching operations, it is useful to know if the entire tree below this node is available for processing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;xml&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns a string containing the XML representation of the node and all its descendants.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nodename&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns the qualified name for the element, attribute, or entity reference. Ex: returns xxx:yyy for the element &lt;xxx:yyy&gt;. The return value depends on the nodetype.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nodetype&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns an integer representing the XML DOM &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodetypes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;node type&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nodetypestring&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns a string representing the XML DOM &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodetypes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;node type&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="25%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;specified&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="75%" valign="top"&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Returns True if the attribute is explicitly specified in the element. Returns False if the attribute value comes from the DTD or schema. Returns True on &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;non-attribute&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; nodes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;This example illustrates a few of the above properties. It checks if the root node has children and prints the number of child nodes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim currNode As IXMLDOMNode&lt;br /&gt;Dim strXML As String&lt;br /&gt;&lt;br /&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.load("c:\books.xml")&lt;br /&gt;Set currNode = xmlDoc.documentElement.firstChild&lt;br /&gt;&lt;br /&gt;strXML = currNode.xml&lt;br /&gt;&lt;br /&gt;MsgBox currNode.namespaceURI&lt;br /&gt;&lt;br /&gt;If currNode.parsed Then&lt;br /&gt;  MsgBox ("node was parsed")&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If currNode.hasChildNodes Then&lt;br /&gt;  MsgBox currNode.childNodes.length Else&lt;br /&gt;  MsgBox ("no child nodes")&lt;br /&gt;End If&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="setnodeinfo"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Setting Node Information:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The data in an XML file is exposed in the DOM as &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;node values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;. Node values might be the value of an attribute or the text within an XML element.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nodeValue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property provides access to values of &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;attributes, text nodes, comments, processing instructions&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, and &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;CDATA section&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; nodes.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;To get the value of an element type node, you can navigate to its element's children (the text nodes within) and call nodeValue on them or use the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;text&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;This code sets the value of an attribute and an element.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;newAttNode = xmlDoc.createAttribute("newAtt")&lt;br /&gt;newAttNode.nodeValue = "hello world"&lt;br /&gt;&lt;br /&gt;If (elem1.text = "hello world") Then&lt;br /&gt;  elem1.text = "hi! world"&lt;br /&gt;End If&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="navigatenodes"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Navigating Through Nodes:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;From the XMLDOMNode object, you can navigate to its: parent node using the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;(parentNode)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;method, children &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;(childNodes, firstChild, lastChild)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, siblings &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;(previousSibling, nextSibling)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, or the document object the node belongs &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;(ownerDocument)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; to.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;If the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodetypes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;node type&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; is &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;element, attribute&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, or &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;entityReference&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, you can call the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;definition&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property to navigate to the schema definition of the node.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;If the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodetypes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;node type&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; is &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;element, processingInstruction, documentType, entity&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, or &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;notation&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, you can navigate to the attributes on the node using the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;attributes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;These methods return the indicated node or &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; if the node doesn't exists.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;This example illustrates how to navigate the DOM tree.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim currNode As IXMLDOMNode&lt;br /&gt;Dim newNode As IXMLDOMNode&lt;br /&gt;Dim rootNode As IXMLDOMNode&lt;br /&gt;Dim oNodeList As IXMLDOMNodeList&lt;br /&gt;&lt;br /&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.load("c:\books.xml")&lt;br /&gt;Set rootNode = xmlDoc.documentElement&lt;br /&gt;'&lt;br /&gt;' Create a new node from another node's parent and display its XML.&lt;br /&gt;'&lt;br /&gt;Set currNode = xmlDoc.documentElement.childNodes.item(1).childNodes.item(0)&lt;br /&gt;Set newNode = currNode.parentNode&lt;br /&gt;MsgBox newNode.xml&lt;br /&gt;'&lt;br /&gt;' Display the XML for the root node's first child.&lt;br /&gt;'&lt;br /&gt;Set currNode = xmlDoc.documentElement.firstChild&lt;br /&gt;MsgBox currNode.xml&lt;br /&gt;'&lt;br /&gt;' Create a new element and insert it before the last child of the top-level node.&lt;br /&gt;'&lt;br /&gt;Set newNode = xmlDoc.createNode (1, "VIDEOS", "")&lt;br /&gt;Set currNode = rootNode.insertBefore(newNode, rootNode.lastChild)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="nodelistexample"&gt;&lt;/a&gt;'&lt;br /&gt;' Get a list of the root's children and display the XML for each child.&lt;br /&gt;'&lt;br /&gt;Set oNodeList = rootNode.childNodes&lt;br /&gt;For Each currNode in oNodeList&lt;br /&gt;  MsgBox currNode.xml&lt;br /&gt;Next&lt;br /&gt;'&lt;br /&gt;' Get a node, get its left sibling, display its XML.&lt;br /&gt;'&lt;br /&gt;Set currNode = xmlDoc.documentElement.childNodes.item(1)&lt;br /&gt;Set newNode = currNode.previousSibling&lt;br /&gt;MsgBox newNode.xml&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="selectnodes"&gt;&lt;/a&gt;You can also navigate to other nodes in the tree using the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;selectNodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;selectSingleNode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;methods. These methods take an &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XSL Pattern&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; as an argument and return the node or nodes that match that query. For more information about XSL Patterns, see my &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/XSLTutorial.aspx"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XSL Tutorial&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="manipulate"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Manipulating the Children of a Node:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;There are four methods that let you manipulate the children of a node. Each one takes a node object as an argument. They are: &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;appendChild, replaceChild, removeChild&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;insertBefore&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="94%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim refNode As IXMLDOMNode&lt;br /&gt;Dim newNode As IXMLDOMNode&lt;br /&gt;Dim root As IXMLDOMNode&lt;br /&gt;&lt;br /&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.load("c:\books.xml")&lt;br /&gt;Set root = xmlDoc.documentElement&lt;br /&gt;'&lt;br /&gt;' Create a new "pages" node. Insert it before the root's first child. Display its XML.&lt;br /&gt;'&lt;br /&gt;Set newNode = xmlDoc.createElement("PAGES")&lt;br /&gt;Set refNode = rootNode.childNodes.item(1).firstChild&lt;br /&gt;root.childNodes.item(1).insertBefore newNode, refNode&lt;br /&gt;MsgBox root.childNodes.item(1).xml&lt;br /&gt;'&lt;br /&gt;' Remove a child node.&lt;br /&gt;'&lt;br /&gt;Set refNode = root.childNodes.item(1).firstChild&lt;br /&gt;root.childNodes.item(1).removeChild refNode&lt;br /&gt;MsgBox root.childNodes.item(1).xml&lt;br /&gt;'&lt;br /&gt;' Replace the specified child with the new "pages" node.&lt;br /&gt;'&lt;br /&gt;Set newNode = xmlDoc.createElement("PAGES")&lt;br /&gt;root.childNodes.item(1).replaceChild newNode, root.childNodes.item(1).childNodes.item(0)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="XMLDOMNodeList"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;table class="TableShaded" style="color: white; background-color: rgb(246, 246, 246); font-weight: bold; font-style: normal; padding-top: 3px; padding-left: 3px; padding-right: 3px; padding-bottom: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(246, 246, 246); border-right-color: rgb(246, 246, 246); border-bottom-color: rgb(246, 246, 246); border-left-color: rgb(246, 246, 246); width: 100%; text-indent: 5px; "&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNodeList&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNodeList&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; object is a &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;collection&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; of nodes. It is returned by the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;childNodes&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#selectnodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;selectNodes&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#accessdom"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;getElementsByTagName&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; methods.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;You can iterate &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;sequentially&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; through the nodes in the list as shown in this &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodelistexample"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;previous example&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; or by using the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nextNode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; method shown below. The &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;length&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property indicates the number of nodes in the list.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim currNode As IXMLDOMNode&lt;br /&gt;Dim oNodeList As IXMLDOMNodeList&lt;br /&gt;&lt;br /&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.load("c:\books.xml")&lt;br /&gt;'&lt;br /&gt;' Get a list of the nodes and display their text.&lt;br /&gt;'&lt;br /&gt;Set oNodeList = xmlDoc.getElementsByTagName("AUTHOR")&lt;br /&gt;For i = 0 TO (oNodeList.length -1)&lt;br /&gt;  Set currNode = oNodeList.nextNode&lt;br /&gt;  MsgBox currNode.text&lt;br /&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;To access nodes &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;randomly&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;, use the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;item&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property. This allows you to navigate directly to a specific node. The first node has an index of zero.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Dim xmlDoc As New DOMDocument&lt;br /&gt;Dim oNodeList As IXMLDOMNodeList&lt;br /&gt;&lt;br /&gt;xmlDoc.async = False&lt;br /&gt;xmlDoc.load("c:\books.xml")&lt;br /&gt;'&lt;br /&gt;' Get a list of the nodes and display their text.&lt;br /&gt;'&lt;br /&gt;Set oNodeList = xmlDoc.getElementsByTagName("AUTHOR")&lt;br /&gt;For i = 0 TO (oNodeList.length -1)&lt;br /&gt;  MsgBox oNodeList(i).text&lt;br /&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;a name="XMLDOMNamedNodeMap"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;table class="TableShaded" style="color: white; background-color: rgb(246, 246, 246); font-weight: bold; font-style: normal; padding-top: 3px; padding-left: 3px; padding-right: 3px; padding-bottom: 3px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(246, 246, 246); border-right-color: rgb(246, 246, 246); border-bottom-color: rgb(246, 246, 246); border-left-color: rgb(246, 246, 246); width: 100%; text-indent: 5px; "&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNamedNodeMap&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;An &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;XMLDOMNamedNodeMap&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; object is returned by the &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;attributes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property. The XMLDOMNamedNodeMap object differs from the node list because it is a collection of nodes that can also be accessed by name.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Just like a node list, a named node map has a &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;length&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property and can be accessed using its&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;item&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; method. It also exposes the &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nextNode&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; property&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;However, you can also access the members of a named node map name by using&lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;getNamedItem&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;getQualifiedItem&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;. The getNamedItem method takes the name of the desired node as a parameter; the getQualifiedItem method takes the name and namespaceURI of the desired node. Each method returns an node object.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;This code gets the value of the ID attribute on the elem1 element and assigns that value to the variable "idValue".&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;idValue = elem1.attributes.getNamedItem("ID").nodeValue&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Manipulating a Named Node Map:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;These methods allow you to manipulate named node maps: &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;setNamedItem, removeNamedItem&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;and &lt;/span&gt;&lt;/span&gt;&lt;span class="Keyword" style="color: blue; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;removeQualifiedItem&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The setNamedItem method takes an XML node object as a parameter, adding that node to the named node map. If an attribute already exists with the same name, the old attribute is replaced. This example creates a new attribute node with the name "ID" and adds it to the attributes of elem1:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;idAtt = XMLDoc.createAttribute("ID") elem1.setNamedItem(idAtt)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;The removeNamedItem method takes a node name as a parameter, removing the node with that name. The removeQualifiedItem method takes a node name and namespaceURI as its parameters, removing the corresponding attribute.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: black; font-weight: normal; font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align="center"&gt;&lt;table width="88%" border="1" cellspacing="0" cellpadding="5" bgcolor="#f6f6f6" bordercolor="#a52a2a"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;p align="center" style="color: black; font-family: Verdana, Arial; font-size: 10pt; font-weight: normal; font-style: normal; "&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Index of DOM Terms&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="50%" valign="top"&gt;&lt;p style="color: black; font-family: Verdana, Arial; font-size: 10pt; font-weight: normal; font-style: normal; "&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#accessdom"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Accessing a DOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodeinfo"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Child Nodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;childNodes Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#DOMDocument"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Creating a DOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#createnodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Creating Nodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#error"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Document Information&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#XMLDOMNode"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Document Node&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#dom"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Document Object Model (DOM)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#DOMDocument"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;DOM Document&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#error"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Error Information&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;firstChild Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;lastChild Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#load"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Loading a Dom&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#parse"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Load and Parse Options&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#manipulate"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Manipulating Nodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/xml" target="_blank"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Microsoft XML Products&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="50%" valign="top"&gt;&lt;p style="color: black; font-family: Verdana, Arial; font-size: 10pt; font-weight: normal; font-style: normal; "&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#XMLDOMNamedNodeMap"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Named Node map&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodeinfo"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;namespaceURI Node Property&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Navigating Through Nodes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;nextSibling Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodeinfo"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node Information&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#XMLDOMNodeList"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node Lists&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodetypes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Node Types&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;ownerDocument Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;parentNode Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#nodeinfo"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Parsed Node Property&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#navigatenodes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;previousSibling Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#load"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Saving Dom Data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/SchemaTutorial.aspx"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Schemas&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#setnodeinfo"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;Setting Node Information&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.thescarms.com/xml/DOMTutorial.aspx#W3C"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: 'times new roman';"&gt;World Wide Web Consortium (W3C)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-1641013839077919488?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t0eRmN6NynFuIVkJVYD-v29Q13c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t0eRmN6NynFuIVkJVYD-v29Q13c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/t0eRmN6NynFuIVkJVYD-v29Q13c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t0eRmN6NynFuIVkJVYD-v29Q13c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/LPCk9RdXMa4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/1641013839077919488/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=1641013839077919488" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1641013839077919488?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1641013839077919488?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/LPCk9RdXMa4/document-object-model-dom-overview.html" title="Document Object Model (DOM) Overview" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/document-object-model-dom-overview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08EQH85fyp7ImA9WxJQGU0.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-4730153447173318499</id><published>2009-06-01T17:14:00.000-07:00</published><updated>2009-06-01T17:16:41.127-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-01T17:16:41.127-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>DHTML/JavaScript concept</title><content type="html">&lt;span class="Apple-style-span" style="white-space: pre-wrap; "&gt;&lt;span class="Apple-style-span" style="font-family: 'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Dynamic HTML (DHTML) is a combination of three technologies: Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript. With these technologies, the content in a browser becomes dynamic, not having to rely on time-consuming updates from round trips back to the server. Additionally, finer control over the user experience is available by leveraging the various events inherent in HTML, such as playing a small sound when the mouse moves over an image or providing custom context menus instead of the standard one provided by the browser.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-4730153447173318499?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/InbkwKWRgc33_qdNVUQmwR_4VWA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/InbkwKWRgc33_qdNVUQmwR_4VWA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/InbkwKWRgc33_qdNVUQmwR_4VWA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/InbkwKWRgc33_qdNVUQmwR_4VWA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/FWsD8wMt_Zc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/4730153447173318499/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=4730153447173318499" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4730153447173318499?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/4730153447173318499?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/FWsD8wMt_Zc/dhtmljavascript-concept.html" title="DHTML/JavaScript concept" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/06/dhtmljavascript-concept.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEAGRHc4fip7ImA9WxJQFEU.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-1236901514111957312</id><published>2009-05-27T19:46:00.000-07:00</published><updated>2009-05-27T20:52:05.936-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-27T20:52:05.936-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>How to Determine and Construct the XMLHttpRequest Object by checking browser type ?</title><content type="html">&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Into JavaScripr file &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;TestScript.js&lt;/span&gt;, we need to write the following function to contruct the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;XMLHTTPRequest object&lt;/span&gt;.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;var xmlHttpObj;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;xmlHttpObj= CreateXmlHttpRequestObject();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; function CreateXmlHttpRequestObject()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        var xmlHttpObj;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            if (window.ActiveXObject)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                try&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                    xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                } catch (e)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                    xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj = new XMLHttpRequest();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        return xmlHttpObj;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Then we need to call it from any aspx page &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;TestAJAXOne.aspx&lt;/span&gt; as following...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;    &lt;div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;input type="button" value="AJAX Call Synchronous" onclick="MakeXMLHTTPSynchronousCall();"&gt;&lt;/div&gt;&lt;div&gt;    &lt;input type="button" value="AJAX Call Asynchronous" onclick="MakeXMLHTTPAsynchronousCall();"&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;    &lt;script src="js/TestScript.js" type="text/javascript"&gt;&lt;/script&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;in type="button" value="AJAX Call Synchronous" onclick="MakeXMLHTTPSynchronousCall();"&gt;&lt;/in&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;in type="button" value="AJAX Call Asynchronous" onclick="MakeXMLHTTPAsynchronousCall();"&gt;&lt;/in&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;into the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;TestScript.js&lt;/span&gt; file we need to add these following function &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function MakeXMLHTTPSynchronousCall()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            var xmlHttpObj;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            xmlHttpObj= CreateXmlHttpRequestObject();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            if (xmlHttpObj)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj.open("GET","http://" + location.host + "/Test/EffectiveDateHAS.xml", false);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj.send(null);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                alert("Request/Response Complete.");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;function MakeXMLHTTPAsynchronousCall()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        var xmlHttpObj;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            xmlHttpObj= CreateXmlHttpRequestObject();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            if (xmlHttpObj)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj.open("GET","http://" + location.host + "/Test/EffectiveDateHAS.xml", true);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj.onreadystatechange= function()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                    if(xmlHttpObj.readyState == 4)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                    {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                        alert("Request/Response Complete.");&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                    }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;                xmlHttpObj.send(null)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;            }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;        }&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-1236901514111957312?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YN754k_z11Ww4l4l7XT9-nlHnuY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YN754k_z11Ww4l4l7XT9-nlHnuY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YN754k_z11Ww4l4l7XT9-nlHnuY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YN754k_z11Ww4l4l7XT9-nlHnuY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/UuEOUZMR9ls" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/1236901514111957312/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=1236901514111957312" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1236901514111957312?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/1236901514111957312?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/UuEOUZMR9ls/how-to-determine-and-construct.html" title="How to Determine and Construct the XMLHttpRequest Object by checking browser type ?" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/05/how-to-determine-and-construct.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEMSH0yeip7ImA9WxJQFEo.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-3034324215719881546</id><published>2009-05-27T19:41:00.000-07:00</published><updated>2009-05-27T19:44:49.392-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-27T19:44:49.392-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>What Is the XMLHttpRequest Object?</title><content type="html">&lt;div&gt;The XMLHttpRequest object is the heart of all asynchronous operations related to Ajax. It is the object responsible for providing the asynchronous behavior through which Ajax-style applications can interact.&lt;/div&gt;&lt;div&gt;XMLHTTP is a protocol that is designed to package data as XML and send it via the network to a specific destination, or endpoint. This information is typically processed in some way, and the result is returned to the caller. The XMLHttpRequest object is an object that is implemented by most modern browsers to facilitate this communication protocol.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-3034324215719881546?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/crcMMxQ9D80Ds1D4Lwe1yo2kEh0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/crcMMxQ9D80Ds1D4Lwe1yo2kEh0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/crcMMxQ9D80Ds1D4Lwe1yo2kEh0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/crcMMxQ9D80Ds1D4Lwe1yo2kEh0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/VJ6lx0yag94" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/3034324215719881546/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=3034324215719881546" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/3034324215719881546?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/3034324215719881546?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/VJ6lx0yag94/what-is-xmlhttprequest-object.html" title="What Is the XMLHttpRequest Object?" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/05/what-is-xmlhttprequest-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIDSX86fCp7ImA9WxJQEU4.&quot;"><id>tag:blogger.com,1999:blog-628803158429097549.post-5244904125064787054</id><published>2009-05-23T01:20:00.000-07:00</published><updated>2009-05-23T20:42:58.114-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-23T20:42:58.114-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AJAX" /><title>What is AJAX?</title><content type="html">&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;div&gt;So into this development environment comes a set of technologies that are collectively referred to as Ajax. If you are an “old guy” developer like us, then Ajax represents a similar concept to the clientserver development we mentioned earlier in the chapter. With client-server development, the amount of data transferred is minimized over a terminal application by transferring only the necessary data back and forth. Similarly, with Ajax, only the necessary data is transferred back and forth between the client and the web server. This minimizes the network utilization and processing on the client. Figure 1-3 shows that typically Ajax operates with the assistance of some type of proxy.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_xi7Jx3X0fB4/ShfQFelg2RI/AAAAAAAAABM/P0B-RDP84RA/s1600-h/1.JPG"&gt;&lt;img src="http://3.bp.blogspot.com/_xi7Jx3X0fB4/ShfQFelg2RI/AAAAAAAAABM/P0B-RDP84RA/s320/1.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5338964675799341330" style="cursor: pointer; width: 320px; height: 250px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 0, 204);"&gt;Advantages of Ajax&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;The advantages of Ajax over classical web based applications are:&lt;/div&gt;&lt;div&gt;❑ Asynchronous—Ajax allows for the ability to make asynchronous calls to a web server. This&lt;br /&gt;&lt;/div&gt;&lt;div&gt;allows the client browser to avoid waiting for all data to arrive before allowing the user to act&lt;/div&gt;&lt;div&gt;once more.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Minimal data transfer—By not performing a full postback and sending all form data to the&lt;/div&gt;&lt;div&gt;server, the network utilization is minimized and quicker operations occur. In sites and locations&lt;/div&gt;&lt;div&gt;with restricted pipes for data transfer, this can greatly improve network performance.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Limited processing on the server—With the fact that only the necessary data is sent to the&lt;/div&gt;&lt;div&gt;server, the server is not required to process all form elements. By sending only the necessary&lt;/div&gt;&lt;div&gt;data, there is limited processing on the server. There is no need to process all form elements,&lt;/div&gt;&lt;div&gt;process the viewstate, send images back to the client, and no need to send a full page back to&lt;/div&gt;&lt;div&gt;the client.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;❑ Responsiveness—Because Ajax applications are asynchronous on the client, they are perceived&lt;/div&gt;&lt;div&gt;to be very responsive.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Context—With a full postback, the user may lose the context of where they are. The user&lt;/div&gt;&lt;div&gt;may be at the bottom of a page, hit the Submit button, and be redirected back to the top of&lt;/div&gt;&lt;div&gt;the page. With Ajax there is no full postback. Clicking the Submit button in an application that&lt;/div&gt;&lt;div&gt;uses Ajax will allow the user to maintain their location. The user state is maintained, and the&lt;/div&gt;&lt;div&gt;user is no longer required to scroll down to the location that he or she was at before clicking&lt;/div&gt;&lt;div&gt;Submit.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Figure 1-4 shows how the user interface can still operate while using Ajax. The UI is not locked during the server processing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_xi7Jx3X0fB4/ShfQ4VNYRDI/AAAAAAAAABU/WjI9xQyOi-c/s1600-h/2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 134px;" src="http://3.bp.blogspot.com/_xi7Jx3X0fB4/ShfQ4VNYRDI/AAAAAAAAABU/WjI9xQyOi-c/s320/2.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5338965549455524914" /&gt;&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 0, 204);"&gt;History of Ajax&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;For all of its perceived newness and sexiness, the technologies that make up Ajax are really not new. The ability to communicate back to the server through a hidden frame without posting the main page back to the server has been around for a long time. Communication between client and server has been available—back to the release of Internet Explorer’s ability to script ActiveX controls on the client browser and to the MSXML component, both of which date back into the late 1990s. Personally, I saw the first formal usage of client script and MSXML in 2003. The problem with the technology at that time was the need to manually create the necessary client-side JavaScript. In 2003, there was too much code overall that had to be written and too much custom code that had to be written to get this to work. It has been only in the second half of 2005 that client-side libraries and server-side support for ASP.NET have started to make their presence felt and been used significantly. The mainstream development community has only recently started using the technique. The release of Google’s Suggest and Maps are what really opened the eyes of the users to the development technologies. These applications sent a shockwave through the development community.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 0, 204);"&gt;Technologies That Make Up Ajax&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Ajax is a general umbrella term. As mentioned earlier, Ajax itself stands for Asynchronous JavaScript And XML. The term Ajax was actually coined by Jesse James Garret of Adaptive Path in an essay that was published in February 2005 (www.adaptivepath.com/publications/essays/archives/000385.php) and was quickly accepted by the development community.Based on this general umbrella term, take a look at the specific items that make up Ajax:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ XmlHttpRequest—XmlHttpRequest allows the browser to communicate to a back-end server.&lt;/div&gt;&lt;div&gt;This object allows the browser to talk to the server without requiring a postback of the entire&lt;/div&gt;&lt;div&gt;web page. With Internet Explorer, this capability is provided by the MSXML ActiveX component. With the Mozilla Firefox and other web browsers, this capability is provided by an object literally called XmlHttpRequest. The XmlHttpRequest object is modeled after the MSXML component. The client-side JavaScript libraries hide the differences between the various browser environments. Sometimes these communications are done through a hidden FRAME or IFRAME.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ JavaScript—JavaScript provides the capabilities to communicate with the back-end server.&lt;/div&gt;&lt;div&gt;The JavaScript must be version 1.5 or later. Although JavaScript is not specifically required, it&lt;/div&gt;&lt;div&gt;is needed from the standpoint that JavaScript is the only client-side scripting environment supported across the major modern web browsers. There are other client script languages; however, these are not supported across all browsers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ DHTML/DOM support—The browser must support the ability to dynamically update form&lt;/div&gt;&lt;div&gt;elements, and the ability to do this in a standard way comes through the support for the&lt;/div&gt;&lt;div&gt;Document Object Model (DOM). By supporting the DOM, it becomes easy for developers to&lt;/div&gt;&lt;div&gt;write a single piece of code that targets multiple browsers. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Data transport with XML or JSON—Using XML allows for the ability to communicate with&lt;/div&gt;&lt;div&gt;the web server in a standard mechanism. There are situations where the JavaScript Object&lt;/div&gt;&lt;div&gt;Notation (JSON) is used as the communication notation instead of straight XML.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 0, 204);"&gt;Running Ajax Applications&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;Unfortunately, not all web browsers ever produced will support Ajax. To run Ajax, a web browser must:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Be relatively modern. Ajax style applications are not available in all versions of all web browsers. Whereas Internet Explorer version 6, Firefox version 1.5, and Opera 8.5 provide support for these applications, older versions may be problematic because of their support for different versions of the other requirements.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Support DOM.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Utilize JavaScript.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Support Extensible Markup Language (XML) and Extensible Style Language Transformation&lt;/div&gt;&lt;div&gt;(XSLT).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;❑ Possibly have ActiveX enabled on the client. If you are using the Internet Explorer browser&lt;/div&gt;&lt;div&gt;while running on Windows, you may have problems if ActiveX is not enabled.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;News&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/628803158429097549-5244904125064787054?l=tanmaytunveer.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/LXS2qpufp9i1DwenhVKz4nFrI9Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LXS2qpufp9i1DwenhVKz4nFrI9Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/LXS2qpufp9i1DwenhVKz4nFrI9Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/LXS2qpufp9i1DwenhVKz4nFrI9Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Tanmaytunveer/~4/83Dl75B89Fo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tanmaytunveer.blogspot.com/feeds/5244904125064787054/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=628803158429097549&amp;postID=5244904125064787054" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/5244904125064787054?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/628803158429097549/posts/default/5244904125064787054?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Tanmaytunveer/~3/83Dl75B89Fo/what-is-ajax.html" title="What is AJAX?" /><author><name>Tanmay Tunveer Showrav</name><uri>http://www.blogger.com/profile/09218889651096580821</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_xi7Jx3X0fB4/ShfQFelg2RI/AAAAAAAAABM/P0B-RDP84RA/s72-c/1.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tanmaytunveer.blogspot.com/2009/05/what-is-ajax.html</feedburner:origLink></entry></feed>

