29 foreach (XAttribute item
in node.Attributes()) {
32 foreach (XElement item2
in node.Elements()) {
38 if (attribute.Name ==
"Value"
39 && attribute.Value ==
"Dangerous") {
40 attribute.Value =
"Normal";
static Stream OpenFile(string path, OpenFileMode openFileMode)
static string CombinePaths(params string[] paths)
void ProcessAttribute(XAttribute attribute)
override void ConvertWorld(string directoryName)
override string TargetVersion
override void ConvertProjectXml(XElement projectNode)
void ProcessNode(XElement node)
override string SourceVersion
static void SetAttributeValue(XElement node, string attributeName, object value)
static XElement LoadXmlFromStream(Stream stream, Encoding encoding, bool throwOnError)
static void SaveXmlToStream(XElement node, Stream stream, Encoding encoding, bool throwOnError)