-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