home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_ReadXMLfromURLSample_snippet_142739_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  37 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Read XML from a URL</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Read XML data from a location defined as an URL.</Description>
  8.       <Shortcut>xmlReadUrl</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <References>
  12.         <Reference>
  13.           <Assembly>System.Xml.dll</Assembly>
  14.           <Url />
  15.         </Reference>
  16.       </References>
  17.       <Imports>
  18.         <Import>
  19.           <Namespace>System.Xml</Namespace>
  20.         </Import>
  21.       </Imports>
  22.       <Declarations>
  23.         <Literal>
  24.           <ID>Url</ID>
  25.           <Type>String</Type>
  26.           <ToolTip>Replace with an URL.</ToolTip>
  27.           <Default>"http://www.contoso.com/books.xml"</Default>
  28.         </Literal>
  29.       </Declarations>
  30.       <Code Language="VB" Kind="method body"><![CDATA[Dim myUrl As String = $Url$
  31. Dim reader As XmlReader = XmlReader.Create(myUrl)
  32. While reader.Read
  33.  
  34. End While]]></Code>
  35.     </Snippet>
  36.   </CodeSnippet>
  37. </CodeSnippets>