TextBox kiểm soát chấp nhận đầu vào bàn phím. Như thể hiện trong hình 5-1, kiểm soát xuất hiện như (tùy thuộc vào tài sản TextMode) một hộp văn bản bình thường, sự thay đổi mật khẩu, hoặc một phiên bản multiline. Xem Chương 15 để tăng cường sự kiểm soát TextBox chẳng hạn như một hiệu ứng thúc đẩy và đeo mặt nạ đầu vào. | Chapter 9 Creating and Consuming Diverse Data 147 Dim rsstitle As New XElement title Ken s Sample Channel rsstitle Dim rssdesc As New XElement description Description of Channel rssdesc Dim rsslink As New XElement link http 12 rsslink Dim intCtr As Integer Dim rssitem As XElement For intCtr 0 To 10 17 rssitem New XElement item _ New XElement title This is item number _ New XElement description Description for item _ _ New XElement link http item _ .aspx rssitem Next 25 rsschannel rssrootelement New _ 28 End Sub Here s what you need to know about Listing 9-1 4-5 RSS like all XML resembles those Russian nesting dolls. The XDocument object is the largest container doll and includes decorations such as XDeclaration and XComment. 6-12 The rssrootelement variable holds the root node the rss tag. The code generates a channel element that it adds to the root. Likewise it adds title description and link elements inside the channel . 17-25 When you reach the item elements the code uses a loop to create sets of title description and link elements that it adds to item elements on each pass through the loop. The item elements nest inside a channel . 28 Finally the whole document is ready and you use the XDocument object s Save method to save the contents as a Streamwriter object that finally goes out to the browser as HTML. To understand what s happening in Listing 9-1 it helps to glance at the generated RSS feed as abbreviated in Listing 9-2. 148 Part II Immersing Yourself in Data__ Listing 9-2 Excerpt of Generated RSS Feed xml version encoding utf-8 --XML to LINQ Generated RSS Feed-- rss version channel title Ken s Sample Channel title description Description of Channel description link http .