PHP.Core.CompilerConfiguration.ParseSystemWebSection C# (CSharp) Method

ParseSystemWebSection() private method

private ParseSystemWebSection ( XmlNode section ) : void
section XmlNode
return void
		private void ParseSystemWebSection(XmlNode/*!*/ section)
		{
			foreach (XmlNode node in section.ChildNodes)
			{
				if (node.NodeType == XmlNodeType.Element)
				{
					switch (node.Name)
					{
						case "globalization":
							string value = ConfigUtils.OptionalAttribute(node, "fileEncoding");

							if (value != null)
							{
								try
								{
									Globalization.PageEncoding = (value != String.Empty) ? Encoding.GetEncoding(value) : Encoding.Default;
								}
								catch (Exception e)
								{
									throw new ConfigurationErrorsException(e.Message, node);
								}
							}
							break;
					}
				}
			}
		}