<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>Stardeveloper.com Headlines</title>
<link>http://www.stardeveloper.com</link>
<description>Get latest articles and information about ASP, ASP.NET and JSP from Stardeveloper.com.</description>
<language>en-us</language>
<ttl>60</ttl>
<pubDate>Sun, 05 Jul 2009 19:59:22 GMT</pubDate><generator><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2008112101&page=1]]></generator><copyright>Copyright 1999 - 2009 Stardeveloper.com, All Rights Reserved.</copyright>
<lastBuildDate>Sat, 20 Jun 2009 06:49:00 GMT</lastBuildDate>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
<title>Displaying Twitter Updates in a Page by Page fashion with ASP.NET</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/WZHBIju0wR0/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will develop a technique to retrieve and display a page full of Twitter updates to the user, giving him the ability to move to the next page. The user will be able to browse all the pages using &amp;apos;Previous Page&amp;apos; and &amp;apos;Next Page&amp;apos; links. Our technique will be highly efficient as we will be retrieving only enough number of Twitter updates from a given screen name, to display on a single page. Only when the user browses to the next page will another set of Twitter updates be retrieved. At the same time we will cache the results, page by page, giving seamless and smooth performance to the end user.&lt;/p&gt;

&lt;p&gt;The code in this tutorial makes use of the code we developed in the previous tutorial: &lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009061701&amp;page=1"&gt;Retrieving Twitter Updates with ASP.NET&lt;/a&gt;. We will only be updating &lt;code&gt;TwitterClient.cs&lt;/code&gt; a little bit to enable retrieval of Twitter updates page by page. Rest of the files will remain the same. We will develop an ASP.NET page to demonstrate the technique.&lt;/p&gt;

&lt;p&gt;I advise that you read this series of tutorials from the beginning and create/place the files as advised in the previous tutorial.&lt;/p&gt;

&lt;p&gt;This tutorial is 3rd in the series of tutorials regarding Twitter and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009061401&amp;page=1"&gt;Introduction to Twitter for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009061701&amp;page=1"&gt;Retrieving Twitter Updates with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Displaying Twitter Updates in a Page by Page fashion with ASP.NET&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Demonstration of Twitter Updates being Displayed Page by Page&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will develop an ASP.NET page that retrieves 5 status updates for a given screen name and displays them on a page. When 'Next Page' link is clicked, next 5 status updates are retrieved and displayed to the user.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/WZHBIju0wR0" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009062001&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Sat, 20 Jun 2009 06:49:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009062001&amp;page=1</feedburner:origLink></item>
<item>
<title>Retrieving Twitter Updates with ASP.NET</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/HIxLqs0-2Fc/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will learn how to retrieve &lt;a href="http://twitter.com" target="_blank" rel="nofollow"&gt;Twitter&lt;/a&gt; status updates using Twitter API and ASP.NET. We will develop code that encapsulates calls to Twitter API and provides easy to use .NET classes to retrieve Twitter status updates, programmatically. We will demonstrate the code by developing an ASP.NET control that uses these .NET classes to retrieve and display Twitter status updates on our website.&lt;/p&gt;

&lt;p&gt;This tutorial is 2nd in the series of tutorials regarding Twitter and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009061401&amp;page=1"&gt;Introduction to Twitter for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Retrieving Twitter Updates with ASP.NET&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009062001&amp;page=1"&gt;Displaying Twitter Updates in a Page by Page fashion with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Things to know about Twitter API&lt;/b&gt;&lt;br /&gt;
Before getting started, it is prudent to know a few things about Twitter API.&lt;/p&gt;

&lt;p&gt;Twitter API is entirely HTTP based. This means that all you need to do to retrieve or post status updates is to make simple HTTP GET and POST calls, respectively, over the internet.&lt;/p&gt;

&lt;p&gt;Twitter API conforms to REST (Representational State Transfer) style of software architecture. You can use URL like &lt;code&gt;http://twitter.com/statuses/user_timeline.&lt;i&gt;format&lt;/i&gt;&lt;/code&gt; to retrieve status updates of a user. You can choose the desired format of the response by specifying the format in the URL. For instance, to retrieve the status updates in XML, the complete URL will be &lt;code&gt;http://twitter.com/statuses/user_timeline.xml&lt;/code&gt;. You have the option of choosing the format between XML, JSON, RSS and Atom.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/HIxLqs0-2Fc" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009061701&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Wed, 17 Jun 2009 07:33:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009061701&amp;page=1</feedburner:origLink></item>
<item>
<title>Introduction to Twitter for ASP.NET Developers</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/dNWEEqvMyk4/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
Twitter is a free social networking service that lets its users communicate with each other through short text messages. There is a limit of 140 characters per message. Users can send messages using online website, mobile devices or by sending SMS from their cell phones. These messages, known as &amp;apos&lt;i&gt;tweets&lt;/i&gt;&amp;apos; are then delivered, by a variety of means, to the users who have subscribed to receive them; known as &amp;apos;&lt;i&gt;followers&lt;/i&gt;&amp;apos;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Guidelines for sending Messages&lt;/b&gt;&lt;br /&gt;
In text messages, username of the person you are replying to should start with &amp;apos@&amp;apos; (at) sign e.g., @Stardeveloper. Twitter will convert these usernames in the text messages to clickable links e.g., &amp;quot;Hello &lt;a href="http://twitter.com/stardeveloper"&gt;@Stardeveloper&lt;/a&gt;!&amp;quot;.&lt;/p&gt;


&lt;p&gt;This tutorial is 1st in the series of tutorials regarding Twitter and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Introduction to Twitter for ASP.NET Developers&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009061701&amp;page=1"&gt;Retrieving Twitter Updates with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009062001&amp;page=1"&gt;Displaying Twitter Updates in a Page by Page fashion with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Connecting with your Audience&lt;/b&gt;&lt;br /&gt;
Twitter provides another opportunity for ASP.NET developers to connect with their website audience. ASP.NET developers can create accounts with screen names of their websites e.g., &lt;a href="http://twitter.com/stardeveloper"&gt;Stardeveloper&lt;/a&gt; (Faisal Khan). This account can then be used as a micro-blog for the website. Not only should the status updates include important website updates, but should also focus on the interesting things you, as a developer, are working on or can benefit your audience. A link is placed on the website linking to the Twitter profile, giving users the opportunity to view the profile, and if he/she chooses so, to start following this account.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/dNWEEqvMyk4" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009061401&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Sat, 13 Jun 2009 12:49:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009061401&amp;page=1</feedburner:origLink></item>
<item>
<title>Validating an XML Document using DTD in ASP.NET</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/AOnPbjy19qY/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will learn how to validate an &lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;XML&lt;/a&gt; document using &lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;DTD&lt;/a&gt;. We will develop an ASP.NET page to demonstrate the code. After you are finished reading this tutorial, you will be proficient in writing C# code that validates XML documents using DTD.&lt;/p&gt;

&lt;p&gt;Following topics will be covered in this tutorial:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="#xml-wellformedness-validation"&gt;Well-formedness vs Validation.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#xml-validation-dtd"&gt;Validating XML Document using DTD.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This tutorial is 6th one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1"&gt;Reading XML Files with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1"&gt;Introduction to XPath for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1"&gt;Creating new XML Document in ASP.NET Programmatically&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;Introduction to DTD (Document Type Definition)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Validating an XML Document using DTD in ASP.NET&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We will first refresh ourselves with basic XML concepts of well-formedness and validation, and later develop the code to validate XML document using DTD.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/AOnPbjy19qY" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009060501&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Fri, 05 Jun 2009 03:36:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1</feedburner:origLink></item>
<item>
<title>Introduction to DTD (Document Type Definition)</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/ab4Ac9g0yu8/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will learn about &amp;quot;Document Type Definition&amp;quot;. DTD is an XML schema language that is used to describe the &lt;i&gt;structure&lt;/i&gt; of an XML document. It describes what elements an XML document can contain and in which order. It further specifies how these elements are arranged within one another and what attributes these elements can contain. The description of the structure and these constraints are written in a formal syntax, some of which we will learn in this tutorial. These declarations can be placed within an XML file, or more commonly in a separate file with &amp;quot;.dtd&amp;quot; extension.&lt;/p&gt;

&lt;p&gt;Following topics will be covered in this tutorial:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="#dtd-elements"&gt;Declaring elements in DTD.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#dtd-attributes"&gt;Declaring attributes in DTD.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#dtd-association"&gt;Associating DTD with XML Documents.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This tutorial is 5th one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1"&gt;Reading XML Files with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1"&gt;Introduction to XPath for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1"&gt;Creating new XML Document in ASP.NET Programmatically&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Introduction to DTD (Document Type Definition)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1"&gt;Validating an XML Document using DTD in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We will now learn how elements and attributes are declared in DTD, and how DTD declarations can be associated with XML document(s).&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/ab4Ac9g0yu8" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009052601&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Tue, 26 May 2009 05:06:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1</feedburner:origLink></item>
<item>
<title>Creating new XML Document in ASP.NET Programmatically</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/Dw3VH6t8WEw/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will learn how to create an XML Document programmatically. We will make use of &lt;code&gt;XmlDocument&lt;/code&gt; class from &lt;code&gt;System.Xml&lt;/code&gt; namespace. Following topics will be covered in this tutorial:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How to create XML declaration and element nodes.&lt;/li&gt;
&lt;li&gt;How to create attributes and append them to element nodes.&lt;/li&gt;
&lt;li&gt;How to create CDATA sections within element nodes.&lt;/li&gt;
&lt;li&gt;How to nest elements and attributes in one another to create a logical tree like structure.&lt;/li&gt;
&lt;li&gt;How to send the dynamically generated XML document to the client browser with proper headers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This tutorial is 4th one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1"&gt;Reading XML Files with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1"&gt;Introduction to XPath for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Creating new XML Document in ASP.NET Programmatically&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;Introduction to DTD (Document Type Definition)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1"&gt;Validating an XML Document using DTD in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Creating new XML Document&lt;/b&gt;&lt;br /&gt;
We will now write down the code to create new XML document.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Code for ASP.NET page&lt;/b&gt;&lt;br /&gt;
Copy and paste following code into a new text file and then save it as &amp;quot;CreateXmlDocument.aspx&amp;quot; in your ASP.NET web application:&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/Dw3VH6t8WEw" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009031901&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Thu, 19 Mar 2009 11:35:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1</feedburner:origLink></item>
<item>
<title>Introduction to XPath for ASP.NET Developers</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/SlX6WqvmuS8/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
XPath is a language for selecting nodes (parts or segments) within an XML document. As you are already &lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;familiar with XML&lt;/a&gt;, XML is a markup language which uses elements and attributes to encapsulate data in a logical manner. XPath furthers builds on it and provides navigational abilities in an XML document. For example, you can use an XPath query to select one or more nodes within an XML document that match a certain criteria. That criteria can by anything from an element matching a given name to an element whose attribute matches a specific value.&lt;/p&gt;

&lt;p&gt;This tutorial is 3rd one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1"&gt;Reading XML Files with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Introduction to XPath for ASP.NET Developers&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1"&gt;Creating new XML Document in ASP.NET Programmatically&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;Introduction to DTD (Document Type Definition)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1"&gt;Validating an XML Document using DTD in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Tree like representation of an XML Document&lt;/b&gt;&lt;br /&gt;
In XPath, an XML document is represented as a tree of nodes. There is a parent node with one or more child nodes. While a node in XPath can be of 7 types; for practical purposes, a node in XPath corresponds to an element or attribute within an XML document. For example, have a look at following XML document:&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/SlX6WqvmuS8" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009031001&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Tue, 10 Mar 2009 05:26:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1</feedburner:origLink></item>
<item>
<title>Reading XML Files with ASP.NET</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/xsd9iTFrfkg/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
In this tutorial, we will learn how to read the contents of an XML file with ASP.NET. We will make use of the sample XML file which we created in the previous tutorial (&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;). We will create an ASP.NET page which reads the contents of this XML file and then displays it to the user.&lt;/p&gt;

&lt;p&gt;This tutorial is 2nd one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1"&gt;Introduction to XML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Reading XML Files with ASP.NET&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1"&gt;Introduction to XPath for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1"&gt;Creating new XML Document in ASP.NET Programmatically&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;Introduction to DTD (Document Type Definition)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1"&gt;Validating an XML Document using DTD in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Sample XML File&lt;/b&gt;&lt;br /&gt;
Okay, let us get started now. Copy and paste the contents below in a new text file and then save that file as &amp;quot;sample.xml&amp;quot; in the /App_Data sub-folder of your ASP.NET web application. Placing the XML file in /App_Data sub-folder ensures that no one will be able to directly access this file from the web. It will only be accessed by our ASP.NET page which will read and display its contents.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/xsd9iTFrfkg" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009030701&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Sat, 07 Mar 2009 09:35:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1</feedburner:origLink></item>
<item>
<title>Introduction to XML</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/ouyIyFS4Vgk/display.html</link>
<description>&lt;p&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
XML stands for Extensible Markup Language. An XML document stores data in the form of text. The data itself can be textual or binary. The binary data is not stored as binary data but is first converted to and is stored as text data. Elements and attributes are used in XML document to encapsulate data in a more logical hierarchical fashion.&lt;/p&gt;

&lt;p&gt;This tutorial is 1st one in the series of tutorials about XML and ASP.NET:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Introduction to XML&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009030701&amp;page=1"&gt;Reading XML Files with ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031001&amp;page=1"&gt;Introduction to XPath for ASP.NET Developers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009031901&amp;page=1"&gt;Creating new XML Document in ASP.NET Programmatically&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009052601&amp;page=1"&gt;Introduction to DTD (Document Type Definition)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.stardeveloper.com/articles/display.html?article=2009060501&amp;page=1"&gt;Validating an XML Document using DTD in ASP.NET&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;Sample XML Document&lt;/b&gt;&lt;br /&gt;
Following is a simple XML document:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&amp;lt;article&amp;gt;
	&amp;lt;author isadmin=&amp;quot;true&amp;quot;&amp;gt;Faisal Khan&amp;lt;/author&amp;gt;
	&amp;lt;title&amp;gt;Sample XML Document&amp;lt;/title&amp;gt;
	&amp;lt;body&amp;gt;The body of the article goes here.&amp;lt;/body&amp;gt;
&amp;lt;/article&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;b&gt;XML Declaration&lt;/b&gt;&lt;br /&gt;
All XML documents start with &lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;/code&gt;. This tells the XML parser that what is to follow is an XML document. An optional &lt;code&gt;encoding&lt;/code&gt; attribute is often added as well.&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/ouyIyFS4Vgk" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2009030101&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Sun, 01 Mar 2009 05:48:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2009030101&amp;page=1</feedburner:origLink></item>
<item>
<title>Preventing SQL Injection Attacks in Classic ASP</title>
<link>http://feedproxy.google.com/~r/StardevelopercomArticleHeadlines/~3/2jfvSjQSqwQ/display.html</link>
<description>&lt;p&gt;&lt;em&gt;The term &amp;quot;&lt;strong&gt;SQL Injection&lt;/strong&gt;&amp;quot; means to inject malicious SQL statement(s) in an otherwise regular SQL to get access to secure data on a website&lt;/em&gt;. Most hackers who attempt this attack use SQL injection in querystring variables in a URL or in form contents being posted back to a web page. In this article, we will examine what SQL injection attacks are and what programming techniques can be used to prevent them. While we will assume classic ASP pages and the backend SQL Server database to demonstrate the method and means of prevention, the concept is equally applicable to other web programming technologies and database systems.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;How a SQL Injection Attack is Carried Out?&lt;/b&gt;&lt;br /&gt;
Any time you generate a SQL statement dynamically in an ASP page using data retrieved from a querystring, form content, or even a cookie, you expose yourself to a SQL injection attack. To demonstrate this, have a look at the following insecure code which creates a dynamic SQL statement by retrieving data form a querystring:&lt;/p&gt;

&lt;pre&gt;Dim sql
	sql = &amp;quot;SELECT [Title], [Description] FROM [Articles] WHERE [ArticleID] = &amp;quot; &amp; _
		Request.QueryString(&amp;quot;articleId&amp;quot;)&lt;/pre&gt;

&lt;p&gt;This code expects a querystring parameter with the name of &lt;code&gt;articleId&lt;/code&gt;. While the developer may have provided a valid integer in the URLs on his website for this piece of code to work as expected, a hacker when he sees this URL will try to exploit this weakness by injecting his own SQL statement(s) to view, update or delete the content in the developer's database.&lt;/p&gt;

&lt;p&gt;For example, all the hacker has to do to view the contents of &lt;code&gt;[dbo].[sysobjects]&lt;/code&gt; table is to set the value of querystring to following:&lt;img src="http://feeds.feedburner.com/~r/StardevelopercomArticleHeadlines/~4/2jfvSjQSqwQ" height="1" width="1"/&gt;</description>
<guid isPermaLink="false"><![CDATA[http://www.stardeveloper.com/articles/display.html?article=2008112501&page=1]]></guid>
<author>Faisal Khan</author>
<pubDate>Tue, 25 Nov 2008 09:56:00 GMT</pubDate>
<atom:link href="http://feeds.feedburner.com/StardevelopercomArticleHeadlines" rel="self" type="application/rss+xml" /><feedburner:origLink>http://www.stardeveloper.com/articles/display.html?article=2008112501&amp;page=1</feedburner:origLink></item>
</channel>
</rss>
