Skip to main content
Microsoft
Visual Basic
Visual Basic
  • Home
  • DevBlogs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • DevOps
    • Developer support
    • CSE Developer
    • Engineering@Microsoft
    • Azure SDK
    • IoT
    • Command Line
    • Perf and Diagnostics
    • Dr. International
    • Notification Hubs
    • Math in Office
    • DirectX
    • PIX
    • SurfaceDuo
    • Startups
    • Sustainable Engineering
    • Windows AI Platform
    • C++
    • C#
    • F#
    • Visual Basic
    • TypeScript
    • PowerShell Community
    • PowerShell Team
    • Python
    • Q#
    • JavaScript
    • Java
    • Java Blog in Chinese
    • .NET
    • .NET MAUI
    • Blazor
    • ASP.NET
    • NuGet
    • Xamarin
    • #ifdef Windows
    • Apps for Windows
    • Azure Depth Platform
    • Azure Government
    • Bing Dev Center
    • Microsoft Edge Dev
    • Microsoft Azure
    • Microsoft 365 Developer
    • Old New Thing
    • Windows MIDI and Music dev
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL Database
    • OData
    • Revolutions R
    • SQL Server Data Tools

    Visual Basic Blog

    A group blog from members of the VB team

    XML - Visual Basic Blog

    Removing duplicate namespaces in XML Literals (Shyam Namboodiripad)
    Removing duplicate namespaces in XML Literals (Shyam Namboodiripad)
    June 9, 2010 Jun 9, 2010 06/9/10
    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...

    0
    VB XML Cookbook, Recipe 7: Enumerating Large XML Files (Doug Rothaus)
    VB XML Cookbook, Recipe 7: Enumerating Large XML Files (Doug Rothaus)
    June 7, 2010 Jun 7, 2010 06/7/10
    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 large XML files while still being able to use ...

    0
    Using HTML entities in XML Literals (Avner Aharoni)
    Using HTML entities in XML Literals (Avner Aharoni)
    May 24, 2010 May 24, 2010 05/24/10
    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 of the entity, although it’s not as ...

    0
    Editing XML Literals Embedded Expressions in Visual Basic 2010 (Avner Aharoni)
    Editing XML Literals Embedded Expressions in Visual Basic 2010 (Avner Aharoni)
    March 26, 2010 Mar 26, 2010 03/26/10
    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 expression tag. In Visual Studio 2010, ...

    0
    Fun With Dynamic Objects (Doug Rothaus)
    Fun With Dynamic Objects (Doug Rothaus)
    January 20, 2010 Jan 20, 2010 01/20/10
    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 was that the XML document did ...

    0
    Linking Zune media items with LinQ, Part 2 (Matt Gertz)
    Linking Zune media items with LinQ, Part 2 (Matt Gertz)
    November 7, 2009 Nov 7, 2009 11/7/09
    Anthony D. G
    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. JCode for the controls (continued)The Title TextBoxWhen the title changes, we’ll want to indicate that the playlist has changed, and we’ll want to ...

    0
    Linking Zune media items with LinQ, Part 1 (Matt Gertz)
    Linking Zune media items with LinQ, Part 1 (Matt Gertz)
    November 6, 2009 Nov 6, 2009 11/6/09
    Anthony D. G
    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 “The Load-Out&...

    0
    XML Literals, WCF and LINQ Article by Steele Price (Lisa Feigenbaum)
    XML Literals, WCF and LINQ Article by Steele Price (Lisa Feigenbaum)
    May 2, 2009 May 2, 2009 05/2/09
    Lisa F
    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 and LINQ by Steele Price...

    0
    .NET Rocks! with Beth Massi on the Open XML SDK and XML Literals (Lisa Feigenbaum)
    .NET Rocks! with Beth Massi on the Open XML SDK and XML Literals (Lisa Feigenbaum)
    May 1, 2009 May 1, 2009 05/1/09
    Beth M
    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 to introduce us to the Open XML SDK, ...

    0
    When using LINQ to XML why don’t I get results if I don’t import a XML namespace (Daniel Walzenbach)?
    When using LINQ to XML why don’t I get results if I don’t import a XML namespace (Daniel Walzenbach)?
    April 29, 2009 Apr 29, 2009 04/29/09
    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, I forgot to import the ...

    0
    • Page 1
    • Page 2
    • Page 3
    • Next page
    Topics
    .NETAdam BradenAlan BermanAlex TurnerAlexandre MouraAmanda SilverAnalyzersAnders HejlsbergAndroidAngularannouncementAnthony D. Greenasyncasynchronous programmingAvner AharoniawaitBeth MassiBill HorstBinary LiteralsByRef ReturnC#C# 6.0Cameron McCollClickOnceConverting SQL to LINQCorrina BarberCross PlatformDaniel WalzenbachData_DesignDebuggerdebuggingDeploymentDid you know?DLRDoug RothausDustin CampbellEdit and ContinueEncodingEncryptionEntity Framework CoreEric KnoxExtension_MethodsF#F# 4.0GitHubGlobalizationHidden Gems in VB10I'm A VB!IDEInterviewiOSIQueryableJared ParsonsJay SchmelzerJoe BinderJohn RivardJohn StalloJonathan AnejaKaren LiuKasey UhlenhuthKathleen McGrathKevin HalversonKinnectKit GeorgeKlaus LoeffelmannLanguage FeaturesLINQ CookbookLINQ/VB9Lisa FeigenbaumLive Unit TestingLuca BologneseLucian WischikMary LeeMatt GertzMessage LoopmetadataMicroframeworkMilind LeleMS Open TechMSINET CoreNET StandardNetduinoObject IDOffice DevelopmentOpen SourceOrcasOSSPagesparallel programmingPatrick DenglerPaul VickPaul YuknewiczPDC2008PerformancePInvokePower PacksPromisesRoslynSamplesSarika CallaScott TuckerScott Wisniewskiscreen saversShyam NamboodiripadSilverlightSilverlight 4 FirestarterSlavi MarinovSmart DevicesSMBSophia SalimSpot the Bug!Spotty BowlesSQLSteve SteinSyntax VisualizerTasktask cancellationTDDTechEd2008TechEd2009threadsTimothy NgTodd ApleyTroubleshootingTuplesTyler WhitneyUnit TestinguniversalUWPVBVB XML CookbookVB_ExpressVB2005VB2008VB2010VB2015VB2017VB6_Migration/InteropVisual BasicVisual Basic HistoryVisual Basic KinectVisual StudioVladimirWCFWebWebMatrixWindows PhoneWindows StoreWorkflowWPFXBox 360XMLXNAYoung Joo
    Top Bloggers
    Archive
  • March 2020
  • November 2018
  • June 2018
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • June 2014
  • May 2014
  • April 2014
  • January 2014
  • December 2013
  • July 2013
  • September 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • November 2006
  • October 2006
  • September 2006
  • July 2006
  • June 2006
  • April 2006
  • March 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • January 2005
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • Stay informed

    Login
    Code Block
    What's new
    • Surface Pro 8
    • Surface Laptop Studio
    • Surface Pro X
    • Surface Go 3
    • Surface Duo 2
    • Surface Pro 7+
    • Windows 11 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Flexible Payments
    Education
    • Microsoft in education
    • Devices for education
    • Microsoft Teams for Education
    • Microsoft 365 Education
    • Education consultation appointment
    • Educator training and development
    • Deals for students and parents
    • Azure for students
    Business
    • Microsoft Cloud
    • Microsoft Security
    • Azure
    • Dynamics 365
    • Microsoft 365
    • Microsoft Advertising
    • Microsoft Industry
    • Microsoft Teams
    Developer & IT
    • Developer Center
    • Documentation
    • Microsoft Learn
    • Microsoft Tech Community
    • Azure Marketplace
    • AppSource
    • Microsoft Power Platform
    • Visual Studio
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2022