日期:2014-05-18  浏览次数:20672 次

序列化的一个问题
<root xmlns:u1="***" xmlns:u1="***" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="u1 ../Schemas/u1.xsd u2../Schemas/u2.xsd">
</root>

如上的xml文件,

请问把对象序列化为xml的时候,要在root这个类中怎么设定生成的xml中才有
xsi:schemaLocation="u1 http://www.xxx.com.cn/Schemas/u1.xsd u2 http://www.xxx.com.cn/Schemas/u2.xsd" 
这部分的内容

谢了。

------解决方案--------------------
http://www.thescripts.com/forum/thread539595.html