Showing results for Avner Aharoni - Visual Basic Blog

May 24, 2010
0
0

Using HTML entities in XML Literals (Avner Aharoni)

VBTeam
VBTeam

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 readable ...

Mar 26, 2010
0
0

Editing XML Literals Embedded Expressions in Visual Basic 2010 (Avner Aharoni)

VBTeam
VBTeam

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, pressi...