-5
當我運行這個程序,我對着這個錯誤錯誤XML文檔(2,2)
public static object Load(Stream stream,Type newType)
{
//create s serializer and load the object
XmlSerializer serializer=new XmlSerializer(newType);
object newobject =serializer.Deserialize(stream);
//return the new object
return newobject;
}
?xml version="1.0"?>
-<Address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FirstName>ali </FirstName> <FamilyName>bradaran</FamilyName> <UserLevel>عادی</UserLevel> <Password>123</Password> </Address>
<?xml version =「1.0」?> -
代碼是我的XML代碼,我曾經有過...... – 2012-01-28 07:21:36
請閱讀本主題:HTTP://元.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks – 2012-01-28 07:32:52