![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
xml
小吉吉
这个作者很懒,什么都没留下…
展开
-
WebService生成XML文档时出错。不应是类型XXXX。使用XmlInclude或SoapInclude属性静态指定非已知的类型。
情况是这样的有自定义的3个类,House、SaleHouse、RentHouse。SaleHouse和RentHouse是House类的子类。在WebService中有一个方法是返回House类。 1 [WebMethod]2 public House Get(int houseId)3 {4 return House.Get(houseId);5 }复制代转载 2012-02-17 01:57:05 · 5598 阅读 · 0 评论 -
用XmlSerializer删除xsd和xsi前缀
The easiest way to do this is to use an overload of the Serialize method. -- StringWriter sw=new StringWriter(); XmlTextWriter tw=new XmlTextWriter(sw); XmlSerializerNamespcace xsn=转载 2012-02-17 02:04:38 · 1803 阅读 · 0 评论 -
xsd验证允许空值
/////xsd 文档 ////xml文件 bb cc 2001-01-01 //////////1.如果没有 xsi:ni转载 2012-02-17 01:55:11 · 4164 阅读 · 0 评论 -
去掉d5p1:nil
原文链接:http://stackoverflow.com/questions/703137/how-to-make-a-value-type-nullable-with-net-xmlserializer留给自己,有空翻译翻译 2012-02-17 20:00:22 · 799 阅读 · 0 评论