How to write xml schema for this xml file
<?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
精彩评论