LINQ SQL innerxml equivalent

A note to myself, if you have an xElement and want to get just the inner xml then this is the way to do it:

' Get the "inner xml" of the element
Dim oReader = RequestElement.CreateReader()
oReader.MoveToContent()
Dim asstring = oReader.ReadInnerXml()

Comments (1) -

  • Rob
    Sweet. Been looking for this for a while and was glad to find it. Thanks.

Add comment

Loading