开发者

converting xdoc or xelement into string? [closed]

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜