<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx</link><description>A couple quick tips here when using XML literals in your Visual Basic programs. #1: I've started using XML literals everywhere I had been using multiline strings and text merging (as I explained in this post ). For instance, I started using them in my</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5695886</link><pubDate>Sat, 27 Oct 2007 00:24:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5695886</guid><dc:creator>BillS</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;Cool tips - I had just linked to your earlier post and that fast you've got a second post on the same topic.&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5695905</link><pubDate>Sat, 27 Oct 2007 00:30:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5695905</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Glad you like them!&lt;/p&gt;
</description></item><item><title>Legacy Lessons</title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5738921</link><pubDate>Sun, 28 Oct 2007 16:30:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5738921</guid><dc:creator>Leaning Into Windows</dc:creator><description>&lt;p&gt;Visual Basic 3 to Visual Basic 6 had many lessons to teach us. We did not as an industry learn these&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5750325</link><pubDate>Mon, 29 Oct 2007 02:58:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5750325</guid><dc:creator>Seid Krvavac</dc:creator><description>&lt;p&gt;Wow!&lt;/p&gt;
&lt;p&gt;Thank you for that tip Beth, it's a really nice little feature in 9.0, I can't wait to the final release to use it in production!&lt;/p&gt;
&lt;p&gt;And I also want to say at this point that you are doing a great job! Keep up the good work :-) &lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5764528</link><pubDate>Mon, 29 Oct 2007 16:27:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5764528</guid><dc:creator>Josh Stodola</dc:creator><description>&lt;p&gt;Thanks I am quite interested in these types of posts. &amp;nbsp;Hope your busy weekend went well.&lt;/p&gt;
&lt;p&gt;Got a question, so what returns from the ToString method exactly? &amp;nbsp;Are those colons included? &amp;nbsp;Does it actually return an object with those properties rather than a string? &amp;nbsp;I just can't picture what gets returned there.&lt;/p&gt;
&lt;p&gt;Thanks! &amp;nbsp;Hope you can continue to feed us very helpful examples!&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5767523</link><pubDate>Mon, 29 Oct 2007 19:34:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5767523</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Josh,&lt;/p&gt;
&lt;p&gt;Yes the formatted string is returned. i.e.:&lt;/p&gt;
&lt;p&gt;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 1&lt;/p&gt;
&lt;p&gt;Name &amp;nbsp; &amp;nbsp; : Massi, Beth&lt;/p&gt;
&lt;p&gt;Address &amp;nbsp;: 123 Main Street&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Seattle, WA - 98123&lt;/p&gt;
&lt;p&gt;I'm eating a lot of XML in VB lately so look for some more tips soon. ;-)&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5767787</link><pubDate>Mon, 29 Oct 2007 19:53:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5767787</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hey Josh, I just noticed that the previous comment messed up the formatting of the string when I pasted it in :-/. It would be formatted evenly of course. ;-)&lt;/p&gt;
</description></item><item><title>New Visual Basic LINQ to XML Videos Released! (Beth Massi)</title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5818785</link><pubDate>Thu, 01 Nov 2007 22:08:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5818785</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;We just released a new set of How-Do-I videos in our LINQ series on LINQ to XML in Visual Basic. These&lt;/p&gt;
</description></item><item><title>New Visual Basic LINQ to XML Videos Released!</title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#5838981</link><pubDate>Fri, 02 Nov 2007 19:02:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5838981</guid><dc:creator>Beth Massi - Sharing the goodness that is VB</dc:creator><description>&lt;p&gt;We just released a new set of How-Do-I videos in our LINQ series on LINQ to XML in Visual Basic. These&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#7341743</link><pubDate>Thu, 31 Jan 2008 08:43:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7341743</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;How do you include special characters? i want to use this for a SQL Query which has a WHERE Clause which checks to see if a value is &amp;lt;= 10.... the less than symbol screws up the xml&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#7341846</link><pubDate>Thu, 31 Jan 2008 08:51:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7341846</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Found a good article about the special character problem: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.xml.com/pub/a/2001/01/31/qanda.html"&gt;http://www.xml.com/pub/a/2001/01/31/qanda.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#8611056</link><pubDate>Tue, 17 Jun 2008 14:57:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8611056</guid><dc:creator>sian</dc:creator><description>&lt;p&gt;Hi Beth can you help me with this: &lt;/p&gt;
&lt;p&gt;this is my xml file&lt;/p&gt;
&lt;p&gt;&amp;lt;CapeQuotes&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;paper_cavg Date=&amp;quot;13/06/2008&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jun2008&amp;quot;&amp;gt;180052.85&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jul2008&amp;quot;&amp;gt;151081.99&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Aug2008&amp;quot;&amp;gt;147294.52&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Sep2008&amp;quot;&amp;gt;150905.31&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Oct2008&amp;quot;&amp;gt;152282.02&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Nov2008&amp;quot;&amp;gt;148332.85&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Dec2008&amp;quot;&amp;gt;141662.52&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jan2009&amp;quot;&amp;gt;135553.84&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Feb2009&amp;quot;&amp;gt;131216.96&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Mar2009&amp;quot;&amp;gt;128094.25&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Apr2009&amp;quot;&amp;gt;125541.07&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;May2009&amp;quot;&amp;gt;123045.44&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jun2009&amp;quot;&amp;gt;120408.50&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jul2009&amp;quot;&amp;gt;117480.47&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Aug2009&amp;quot;&amp;gt;113937.19&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Sep2009&amp;quot;&amp;gt;110095.17&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Oct2009&amp;quot;&amp;gt;106025.87&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Nov2009&amp;quot;&amp;gt;101857.96&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Dec2009&amp;quot;&amp;gt;97717.91&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jan2010&amp;quot;&amp;gt;93790.46&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Feb2010&amp;quot;&amp;gt;90124.52&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Mar2010&amp;quot;&amp;gt;86659.83&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Apr2010&amp;quot;&amp;gt;83279.86&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;May2010&amp;quot;&amp;gt;80105.17&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jun2010&amp;quot;&amp;gt;77129.80&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jul2010&amp;quot;&amp;gt;74352.18&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Aug2010&amp;quot;&amp;gt;71726.16&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Sep2010&amp;quot;&amp;gt;69332.67&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Oct2010&amp;quot;&amp;gt;67125.57&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Nov2010&amp;quot;&amp;gt;65099.11&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Dec2010&amp;quot;&amp;gt;63251.50&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Jan2011&amp;quot;&amp;gt;61603.07&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Feb2011&amp;quot;&amp;gt;60135.32&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Mar2011&amp;quot;&amp;gt;58808.34&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;Apr2011&amp;quot;&amp;gt;57564.34&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Month Name=&amp;quot;May2011&amp;quot;&amp;gt;56436.15&amp;lt;/Month&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/paper_cavg&amp;gt;&lt;/p&gt;
&lt;p&gt;Then this is my xml query in VB but it doesn't work&lt;/p&gt;
&lt;p&gt;Dim MyQuotes = XDocument.Load(&amp;quot;C:\WebSite1\App_Data\CapeQuotes.xml&amp;quot;)&lt;/p&gt;
&lt;p&gt;Dim Quote2 = From quote In MyQuotes...&amp;lt;paper_cavg&amp;gt; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Where quote.&amp;lt;paper_cavg&amp;gt;.@Date = &amp;quot;13/06/2008&amp;quot; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Select quote Where quote.&amp;lt;paper_cavg&amp;gt;.&amp;lt;Month&amp;gt;.@Name = &amp;quot;Jul2008&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;aryOptions(i).NormUl = Quote2.ToString&lt;/p&gt;
</description></item><item><title>re: XML Literals Tips/Tricks </title><link>http://blogs.msdn.com/bethmassi/archive/2007/10/26/xml-literals-tips-tricks.aspx#8611065</link><pubDate>Tue, 17 Jun 2008 14:59:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8611065</guid><dc:creator>sian</dc:creator><description>&lt;p&gt;Of course the xml file has a closing literal as well&lt;/p&gt;
&lt;p&gt;&amp;lt;/CapeQuotes&amp;gt;&lt;/p&gt;
</description></item></channel></rss>