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)
override void ConvertWorld(string directoryName)
void ProcessAttribute(XAttribute attribute)
void ProcessNode(XElement node)
override string TargetVersion
override string SourceVersion
override void ConvertProjectXml(XElement projectNode)
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)