It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 yea开发者_如何学JAVArs ago.
can you easily convert an xdocument and xelement into string to store in the db?
Have you tried using ToString() or ToString(SaveOptions)?
There are various alternatives depending on what you want to do, but those are the simplest :)
In you want the content of the element you could use .InnerText or if you want the XML of the element you could use .InnerXml
精彩评论