如何把xsd转换成xml?有没有这样的例子 如何把xsd转换成xml? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 什么叫把XSD转换成XML?XSD本身的格式就是XML,如果你要产生基于XSD的样品XML文件,如果你用XMLSPYFile | Document Wizards... | "XML Schema to XML"用编码的话,参考下文,虽然该文是产生类,不是完全你要的,但你应该据此而产生XMLhttp://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxmlnet/html/xsdcodegen.asphttp://www.codeproject.com/soap/xmlcodegen.asp xsd转成xml?xsd本身就是xml呀。 楼主是想通过xsd得到xml吗?给段代码:DataSet ds=new DataSet();string path=Server.MapPath("./");ds.ReadXmlSchema(path+"XSDSchema1.xsd");//XSDSchema1.xsd是已经存在的,有两列DataRow dr=ds.Tables[0].NewRow();dr[0]="111";dr[1]="hello";ds.Tables[0].Rows.Add(dr);//插入值到dsds.WriteXml(path+"test.xml");//ds写到xml中,不存在就新建 并发安全问题 webservice中的session问题 如何给iframe添加事件 CheckBox的绑定与选中 web项目中用过RDLC的朋友进来看看. 关于petshop4.0,这段代码什么意思啊? 请教转义的问题,谢谢 asp.net连接数据库出错了。请高手帮忙啊。。 asp.net中datagrid控件翻页出错 .NET网站 防止地址栏直接下载文件 忘了如何用asp.net调试asp程序了,老是说asp进程不具有调试权限,哪位大哥提醒一下,谢谢 各位大哥,我装了IIS不能用啊,我很急呀!!!!
用编码的话,参考下文,虽然该文是产生类,不是完全你要的,但你应该据此而产生XMLhttp://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxmlnet/html/xsdcodegen.asp
http://www.codeproject.com/soap/xmlcodegen.asp
string path=Server.MapPath("./");
ds.ReadXmlSchema(path+"XSDSchema1.xsd");//XSDSchema1.xsd是已经存在的,有两列
DataRow dr=ds.Tables[0].NewRow();
dr[0]="111";
dr[1]="hello";
ds.Tables[0].Rows.Add(dr);//插入值到ds
ds.WriteXml(path+"test.xml");//ds写到xml中,不存在就新建