Showing results for Doug Rothaus - Visual Basic Blog

Apr 25, 2008
0
0

VB XML Cookbook, Recipe 3: Identity Transforms (Doug Rothaus)

VBTeam
VBTeam

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 a title is referred to within an article, it ...

Mar 19, 2008
0
0

VB XML Cookbook, Recipe 2: Descendants and Ancestors (Doug Rothaus)

VBTeam
VBTeam

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.DescendantsVisual Basic provides XML Axis properties that enable you to easily refer to child nodes and attributes. As is often the case with XML, you may need to reference sub-elem...

Feb 21, 2008
0
0

VB XML Cookbook, Recipe 1: XML Transformations using XML Literals (Doug Rothaus)

VBTeam
VBTeam

I was working on a blog entry about replacing XSLT transforms with Visual Basic XML Literals. As the entry progressed, I noticed that it was really, really long. So, Avner Aharoni and I talked things over and we decided to break it up into multiple entries and start a series, much like the LINQ Cookbook that was started a few months back. Introduci...

Dec 18, 2007
0
0

LINQ Cookbook, Recipe 12: Calculate the Standard Deviation (Doug Rothaus)

VBTeam
VBTeam

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to Objects Introduction:LINQ Cookbook, Recipe 11 showed how you can use LINQ queries to perform calculations on sets of data using a set of standard aggregate functions such as Average, and Sum. In this recipe, you wi...

Dec 13, 2007
0
0

LINQ Cookbook, Recipe 11: Desktop Search Statistics (Doug Rothaus)

VBTeam
VBTeam

Ingredients:·        Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to DataSet Introduction:You can use aggregate functions in LINQ queries to perform calculations on sets of data. Visual Basic includes a set of standard aggregate functions for LINQ queries: All, Any, Average, Count, LongCo...

Nov 6, 2007
0
0

LINQ Cookbook, Recipe 10: Pre-compiling Queries for Performance (Doug Rothaus)

VBTeam
VBTeam

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to SQL Introduction:As we add cookbook entries, we will include performance improvement tips where appropriate. Here’s a tip that you can use with LINQ to SQL to speed up queries that you will call numerous time...

Oct 17, 2007
0
0

LINQ Cookbook, Recipe 9: Dynamic Sort Order (Doug Rothaus)

VBTeam
VBTeam

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-XML Introduction:You can use the Order By clause to easily sort the results of a LINQ query in Visual Basic. A common requirement for sorted data, however, is that the user be able to choose the fields that the res...

Oct 1, 2007
0
0

LINQ Cookbook, Recipe 8: Querying XML Using LINQ (Doug Rothaus)

VBTeam
VBTeam

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-XML Instructions:·         Create a new Console Application in Visual Basic.·         Create an RSS document. Add the fo...