The error message is quite clear. The object
a
does not has a definition for
OuterXML
.
Would be good to know the type of
a
respectively
section
. Then the documentation for that type can be checked for the available methods and properties and their syntax.
If it is the
XmlNode.OuterXml Property (System.Xml)[
^]:
SectionTotal.LoadXml(a.OuterXml);
[EDIT]
C# is case sensitive while VB .Net is not.
More precisely: The VB compiler will check if a name matches case insensitive and select then the correct case sensitive name.
So it does not care if you use
OuterXML
or
outerxml
with VB because the compiler will resolve that to
OuterXml
and use it internally. But that does not apply to C# where you have to use the exact name.
[/EDIT]