Browse by Tags

Tagged Content List
  • Blog Post: Removing duplicate namespaces in XML Literals (Shyam Namboodiripad)

    A common problem that one often runs into with XML literals and the LINQ to XML API is duplicate XML namespaces. Consider the following example. The code imports a default XML namespace - “hello”. Code: Imports < xmlns = " hello " > Module Module1 Sub Main() Dim x = < A > <...
  • Blog Post: VB XML Cookbook, Recipe 7: Enumerating Large XML Files (Doug Rothaus)

    VB XML Cookbook, Recipe 7: Enumerating Large XML Files (Doug Rothaus) It’s been a while since I wrote one of these XML cookbook entries. Here’s some info on a common problem: Really big XML files. I’m going to show you two things in this recipe. The first is a tip on reading very...
  • Blog Post: Using HTML entities in XML Literals (Avner Aharoni)

    One of the common use-cases of XML literals is creating HTML. However, HTML entities cannot be used in XML literals since LINQ to XML directly supports only the Data type definitions (DTD) defined in the XML 1.0 spec. You can read more about it here . The workaround is to use the Unicode representation...
  • Blog Post: Editing XML Literals Embedded Expressions in Visual Basic 2010 (Avner Aharoni)

    The implicit line continuation feature in Visual Basic 2010 provided an opportunity to improve the code editing experience in XML literals embedded expressions. In Visual Studio 2008, pressing Enter inside an embedded expression would result in the cursor being positioned to the left of the end embedded...
  • Blog Post: Fun With Dynamic Objects (Doug Rothaus)

    A while back, I remember being asked if there was a simple way to expose a source XML document as an object with properties. That is, if the root XML element had a child element <Name>Doug</Name> , then the object would have a Name property that was a string and returned “Doug”. The catch...
  • Blog Post: Linking Zune media items with LinQ, Part 2 (Matt Gertz)

    In this post, I’ll continue on with coding the new playlist shuffler. If you haven’t read part 1 yet, I highly recommend it so that this post will make more sense. J Code for the controls (continued) The Title TextBox When the title changes, we’ll want to indicate that the playlist has changed...
  • Blog Post: Linking Zune media items with LinQ, Part 1 (Matt Gertz)

    Way back in October 2007, I wrote up a few posts ( here and here ) on my experiments with the Windows Media Player object model. The problem I was trying to solve was that, when I had a playlist set to “shuffle,” WMP would break up songs that should always play together (for example, Jackson Browne’s...
  • Blog Post: XML Literals, WCF and LINQ Article by Steele Price (Lisa Feigenbaum)

    Steele wrote a great article in last month's issue of Visual Studio Magazine on XML Literals, WCF and LINQ. He shows how to use these three technologies together to produce more responsive ASP.NET pages, and more readable code. Lots of great tips for VB 2008. VSM's "On VB" Column: XML Literals, WCF...
  • Blog Post: .NET Rocks! with Beth Massi on the Open XML SDK and XML Literals (Lisa Feigenbaum)

    Beth Massi shot a couple of great episodes last month on dnrTV! If you are interested in learning more about the Open XML SDK, and how to easily access it using VB.NET XML Literals, be sure to check them out. dnrTV Show #137: Beth Massi on the Open XML SDK Our good friend Beth Massi returns to dnrTV...
  • Blog Post: When using LINQ to XML why don’t I get results if I don’t import a XML namespace (Daniel Walzenbach)?

    Hi, I posted a bit of code the other day which I used to get a list of all Code Snippets we ship in Visual Studio . In a nutshell, I used XElement.Load to create a new XML document from a filename from which I then read elements from (There are way to many ‘”from” in this sentence ;-) ). Unfortunately...
  • Blog Post: MIX 09 Video: Making XML Really, Really Easy with Microsoft Visual Basic (Alex Turner, Lisa Feigenbaum)

    Alex Turner presented VB XML yesterday here at MIX 09. Check out the video from his session! Video link: http://videos.visitmix.com/MIX09/T72M (The powerpoint slides are attached.) Making XML Really, Really Easy with Microsoft Visual Basic 9 MIX09-T72M Wednesday March 18 |11:55 AM - 12:15 PM |...
  • Blog Post: VB XML Literals with ASP.NET MVC (Lisa Feigenbaum)

    Have you been following the buzz on VB XML Literals with ASP.NET MVC?! Last week, Beth Massi posted a Channel 9 video with ASP.NET Product Unit Manager Dmitry Robsman. You can find a written description of the topic on Dmitry's blog: ASP.NET MVC View Engine using VB.NET XML Literals There has been an...
  • Blog Post: Visual Basic at MIX '09 (Lisa Feigenbaum)

    For the Visual Basic web developers, be sure to check out MIX this year! The conference will be taking place March 18-20, at the Venetian hotel in Las Vegas. http://2009.visitmix.com/ The list of sessions is posted here . Included in the agenda will be the following Visual Basic session. Making XML Really...
  • Blog Post: Channel 9 Interview: ASP.NET MVC using Visual Basic XML Literals (Beth Massi)

    Today I posted an interview on Channel 9 with Dmitry Robsman, the Product Unit Manager for ASP.NET. In this interview he shows us how he implemented ASP.NET MVC views using Visual Basic's XML Literals instead of .aspx pages. Dmitry shows us how this makes coding the views much cleaner using standard...
  • Blog Post: Panel: Developers moving to VB.Net for projects using XML (Lisa Feigenbaum)

    Visual Basic 9.0 introduces a feature called XML Literals , which makes programming against XML a lot more natural, and dramatically decreases the number of lines of code you need to write. In fact, it makes working with XML in Visual Basic *so* much easier that many C# developers are moving to VB.Net...
  • Blog Post: TechEd Barcelona: Session Materials (Lisa Feigenbaum)

    I'm here at TechEd Barcelona, and the week has gotten off to a great start. Jason Zander did the keynote this afternoon, and announced lots of great tooling support that will be included in Visual Studio 2010! Exciting stuff. I have 4 sessions here, starting tomorrow. I've attached the materials at...
  • Blog Post: Visual Basic at TechEd SouthEast Asia (Lisa Feigenbaum)

    This is a follow-up to my presentations at TechEd SouthEast Asia. Please find all the descriptions and materials for the presentations on the following resource page: http://code.msdn.microsoft.com/techedsea Here are some direct links to the materials: TLA 314 - Visual Basic 2008 Tips and Tricks...
  • Blog Post: Visual Basic at TechEd South Africa 2008 (Lisa Feigenbaum)

    Thanks to those of you who attended my sessions at TechEd South Africa 2008. As promised here are the presentation materials I used, so you try out the examples yourself! I've created a Code Gallery resource page to host the material, with all the session abstracts, powerpoints, and solutions. That resource...
  • Blog Post: VB 2008 Language Deep Dive - Presentation Materials (Jonathan Aneja)

    Last week I got the chance to visit the Toronto .NET User Group and give a talk on all the great new language features in VB2008. It was great to see so much excitement a round LINQ and especially XML Literals ! The slides and demo code are posted at the link below; here’s the session abstract...
  • Blog Post: Channel 9 Interview: XML Schema Explorer in Visual Studio 2008 SP1 (Beth Massi)

    Today I posted an interview on Channel 9 with Yang Xiao , a tester on the VB IDE. In this interview Yang shows us the new XML Schema Explorer in Visual Studio 2008 Service Pack 1 . This new window is invoked when you right-click on an XML literal element or namespace and select "Show in XML Schema...
  • Blog Post: Article: Sharpening Your Axis with Visual Basic 9 (Beth Massi)

    In the July/August issue of CoDe Magazine there's an article I wrote with Avner Aharoni (the Program Manager on XML literals) called Sharpening Your Axis with Visual Basic 9 . (They just opened up online access to even non-subscribers today!) I highly recommend this article which shows you from the beginning...
  • Blog Post: VB XML Cookbook, Recipe 5: The “Halloween” Problem (Doug Rothaus)

    In the last two XML cookbook entries, we talked about the technique of using the ReplaceWith method to perform an identity transform. While this technique may meet your needs, it can introduce a problem in your code commonly referred to as the “Halloween” problem. Let’s take a look at what the problem...
  • Blog Post: VB XML Cookbook, Recipe 4: Get Inner XML from the Nodes Property (Doug Rothaus)

    Recipe 3 showed one way to work with mixed XML content using the XML Descendant axis property and the ReplaceWith method. This is one way to do an identity transform and we’ll look at another method in a later post. There is a key capability not mentioned in Recipe 3 that you will need for fully-functioning...
  • Blog Post: VB XML Cookbook, Recipe 3: Identity Transforms (Doug Rothaus)

    An identity transform in XSLT does just what the name implies: replace the identity of an element or attribute with a new identity. Identity transforms are especially critical when dealing with XML markup that is less rigid in its structure. Consider a documentation structure for news articles. Whenever...
  • Blog Post: VB XML Cookbook, Recipe 2: Descendants and Ancestors (Doug Rothaus)

    This entry in the cookbook shows how you can access descendant and ancestor elements in an XML document using Visual Basic, XML Axis properties, and LINQ to XML objects. Descendants Visual Basic provides XML Axis properties that enable you to easily refer to child nodes and attributes. As is often...
Page 1 of 2 (29 items) 12