NFe.Components.XMLIniFile.ReadThisValue C# (CSharp) Method

ReadThisValue() protected method

protected ReadThisValue ( string Path, string ValueSection ) : string
Path string
ValueSection string
return string
        protected string ReadThisValue(string Path, string ValueSection)	//OK
		{
			XmlNode n = GetPathNode(Path, false);
			try
			{
				if (n != null)
				{
					if (n.Attributes.GetNamedItem( ValueSection )!=null)
					{
						n = n.Attributes.GetNamedItem( ValueSection );
						return n.Value;
					}
					for(int i=0; i < n.ChildNodes.Count; ++i)
						if (n.ChildNodes[i].LocalName == ValueSection)
						{
							return n.ChildNodes[i].InnerText;
						}
				}
			}
			catch
			{
			}

			return "";
		}

Same methods

XMLIniFile::ReadThisValue ( string Path, string ValueSection, string Default ) : string