-5
、私はエラー(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"?> - <アドレスxmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd = "http://www.w3ます。http://メタ.ORG/2001/XMLスキーマ ">アリعادی –
コード上記 bradaranは、私はそれは...... –
、このトピックをお読みください持っていた私のXMLコードであります.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks –