我有xml文件,我需要根据新的客户端要求更新每一次。 由于xml文件的手动更新,大部分时间xml并不合适。 我想写一个程序(网页/窗口)提供适当的验证。 并基于来自ui的输入我将创建xml文件。下面是 是我的示例xml文件。基于我的c#类生成xml文件
<community>
<author>xxx xxx</author>
<communityid>000</communityid>
<name>name of the community</name>
<addresses>
<registeredaddress>
<addressline1>xxx</addressline1>
<addressline2>xxx</addressline2>
<addressline3>xxx</addressline3>
<city>xxx</city>
<county>xx</county>
<postcode>0000-000</postcode>
<country>xxx</country>
</registeredaddress>
<tradingaddress>
<addressline1>xxx</addressline1>
<addressline2>xxx</addressline2>
<addressline3>xxx</addressline3>
<city>xxx</city>
<county>xx</county>
<postcode>0000-000</postcode>
<country>xxx</country>
</tradingaddress>
</addresses>
<community>
任何人都可以帮助我什么将是最好的方法呢?
你在说什么样的验证? – 2013-02-19 08:52:58
喜欢邮政编码字段的正则表达式 – Prashant 2013-02-19 08:55:54
@Prashant对于xml标签是否小写很重要? – 2013-02-19 09:00:59