开发者

How to write xml schema for this xml file

开发者 https://www.devze.com 2022-12-26 05:41 出处:网络
<?xml versio开发者_如何学运维n=\"1.0\" encoding=\"utf-8\" ?> <ConnectionConfig> <Machine Ip=\"192.168.0.7\">
<?xml versio开发者_如何学运维n="1.0" encoding="utf-8" ?>  
  <ConnectionConfig>
      <Machine Ip="192.168.0.7">
          <ConnectionString>Data Source=TWO;Initial Catalog=Freight;User ID=sa;Password=f5tech</ConnectionString>
      </Machine>
    </ConnectionConfig>


You could use the xsd.exe utility. Save this to a xml file and:

xsd.exe test.xml

This will infer the schema from the xml file.


I use the Microsoft XML to Schema Tool for Visual Basic 2008

0

精彩评论

暂无评论...
验证码 换一张
取 消