ToXml() public method

public ToXml ( ) : SecurityElement
return SecurityElement
		public void ToXML ()
		{
			p = new FileIOPermission(FileIOPermissionAccess.Read, pathArrayGood);
			SecurityElement esd = p.ToXml();
			Assert.IsTrue(esd.Tag == "IPermission", "Esd tag incorrect");
			Assert.IsTrue((String)esd.Attributes["version"] == "1", "Esd version incorrect");
			string read = (String)esd.Attributes["Read"];
			pathsInPermission = read.Split(';');
			Assert.IsTrue(pathsInPermission.Length == 2, "Path list should have 2 for Read");
		}