Home > Microsoft .Net Development Tips > Visual Basic and Visual Basic .NET
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

VISUAL BASIC AND VISUAL BASIC .NET

Compose XML more quickly using Visual Basic 9


Andrew Horne
08.11.2008
Rating: --- (out of 5)


.NET Essentials Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


New aspects of Visual Basic 9.0 help developers pare down the amount of code needed to create an object in XML and to access specific areas within an existing XML object. Understanding how VB 9.0 streamlined the process and opened itself up to more sophisticated features is a big part of getting up to speed with the newest Visual Studio tools.

A major objective of VB 9.0 is to connect XML to Language Integrated Queries (LINQs). VB 9.0 accomplishes this goal with an API called "LINQ to XML," which Visual Basic provides you with as soon as you write normal XML.

Writing code becomes easier with the addition of XML literals, a device intended to streamline the composition process. Code composed through XML literals becomes an object in LINQ to XML form.

While XML literals help with writing, XML axis properties help with accessing areas of existing XML. There are several property types that you can use to search for particular areas, including the child, attribute and descendent axes. These property types let you access material with a minimum of code writing.

VB 9.0 offers a higher level of support for XML to reduce the amount of code you have to write. Developers should be aware that in the new version of VB, the compiler takes over much of the developer's job, exploiting VB 9.0's XML literals and the XML axis properties. The decrease in the volume of code is intended to simplify the process of writing XML and make life easier for developers.

To learn more about the mechanics of XML literals and how they reduce your code-writing, check out this section on XML Literals on MSDN. For a broader look at VB 9.0's new features, see here. And for the full guide to XML in VB 9.0, look here.


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Visual Basic and Visual Basic .NET
Virtualization keeps Legacy Apps alive
VB 9 Anonymous Types help create flexible objects
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Book Excerpt: Sams Teach Yourself Visual Basic 2008 in 24 Hours -- Complete Starter Kit
Check out CodePlex for a ton of interesting .NET projects
Book excerpt: Murach's VB 2008
Book excerpt: Printing in Visual Basic 2005
Visual Basic 2008 and closures
WinForms development using SQL Server 2005 and Visual Basic 2005
Visual Basic 2005 and objects: Building a business object layer

Visual Basic and C# development skills
Let Microsoft StyleCop tame your wild C#
Virtualization keeps Legacy Apps alive
VB 9 Anonymous Types help create flexible objects
Book Excerpt: Sams Teach Yourself Visual Basic 2008 in 24 Hours -- Complete Starter Kit
Microsoft delivers Office for Mac SP1 - will bring back VBA
Visual Basic and C# development skills Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts