GetTwitterCommonConfiguration ( XmlNode oParentNode, out Int32 iMaximumPeoplePerRequest, out String sNetworkFileFolderPath, out NetworkFileFormats eNetworkFileFormats, out Boolean bAutomateNodeXLWorkbook ) { Debug.Assert(oParentNode != null); AssertValid(); String sMaximumPeoplePerRequest; iMaximumPeoplePerRequest = Int32.MaxValue; if (XmlUtil2.TrySelectSingleNodeAsString(oParentNode, "MaximumPeoplePerRequest/text()", null, out sMaximumPeoplePerRequest)) { if (!Int32.TryParse(sMaximumPeoplePerRequest, out iMaximumPeoplePerRequest)) { throw new XmlException( "The MaximumPeoplePerRequest value is not valid." ); } } sNetworkFileFolderPath = XmlUtil2.SelectRequiredSingleNodeAsString( oParentNode, "NetworkFileFolder/text()", null); eNetworkFileFormats = GetRequiredEnumValue <NetworkFileFormats>( oParentNode, "NetworkFileFormats/text()", "NetworkFileFormats"); // The AutomateNodeXLWorkbook node was added in a later version of the // program, so it is not required. if (!XmlUtil2.TrySelectSingleNodeAsBoolean( oParentNode, "AutomateNodeXLWorkbook/text()", null, out bAutomateNodeXLWorkbook)) { bAutomateNodeXLWorkbook = false; } }