LoadXMLFileToString Method

XMLConfigurationLib

Collapse image Expand Image Copy image CopyHover image
Loads the XML file to string.

Namespace: XMLConfigurationLib
Assembly: XMLConfigurationLib (in XMLConfigurationLib.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string LoadXMLFileToString(
	string filePath,
	bool bDoValidation = true
)
Visual Basic
Public Function LoadXMLFileToString ( _
	filePath As String, _
	Optional bDoValidation As Boolean = True _
) As String
Visual C++
public:
String^ LoadXMLFileToString(
	String^ filePath, 
	bool bDoValidation = true
)

Parameters

filePath
Type: System..::..String
The file path.
bDoValidation (Optional)
Type: System..::..Boolean
if set to true [do validation].

Return Value

The xml file as a formatted string

Exceptions

Exception Condition
System..::..Exception Bad File Extension or File Doesn't Exist or

See Also