Created
May 15, 2012 08:56
-
-
Save pinzolo/2700187 to your computer and use it in GitHub Desktop.
CDATA セクションを後から追加する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nameElement = new XElement("name"); | |
if (obj.Name != null) | |
{ | |
nameElement.ReplaceNodes(new XCData(obj.Name)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment