If you programmatically add attributes with namespaces to an XElement, when the XElement is written out it will give each attribute a namespace prefix and then define a xmlns for that prefix. The way XElement does this is first it examines the namespaces already active and also those defined in the element...
When working with VB9 you may get this cryptic error : XML namespace prefix 'xmlns' is not defined If you are using only default namespaces you can fix this by including a definition for the xmlns as an Import statement or as an xmlns attribute on the XML literal. But if you are using prefixed...
Posted to
@ Head
(Weblog)
by
bill
on
11-25-2007
Filed under: VB, Orcas, DevCenter, VS2008, Bug
In VB9, there's a bug when using XML literals with any type member that is a protected keyword. For example, given the following psuedo types, Class Doc Public Property [Imports]() As List( Of DocImports) End Class Class DocImports Public Property [Namespace]() As String End Class The following code...
Posted to
@ Head
(Weblog)
by
bill
on
11-20-2007
Filed under: VB, Orcas, LINQ, DevCenter, VS2008, Bug