私は新しいクライアント要件ごとに毎回更新する必要があるxmlファイルを持っています。 xmlファイルの手動更新のため、ほとんどの時間xmlが適切ではありません。 私は、適切な検証が提供されるプログラム(web/windows)を書くことを考えています。 と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>
これにはどのような方法が最適でしょうか?
あなたはどんな種類のバリデーションをしていますか? –
ポストコードフィールドの正規表現 – Prashant
のように@Prashantは、xmlタグが小文字であることは重要ですか? –