私は現在、Xmldocument
いくつかの値を使用してxmlファイルを読み込んでいます。私が読んでいる部分は次のようになっています。
<para styleclass="Normal" style="margin-top:12px; line-height:1.0; tabstops:none;"><table rowcount="22" colcount="4" style="width:100%; cell-padding:1px; cell-spacing:2px; page-break-inside:auto; border-width:0px; border-spacing:2px; cell-border-width:0px; border-style:none; background-color:none; head-row-background-color:none; alt-row-background-color:none;">
<tr style="vertical-align:top">
<td style="vertical-align:bottom; width:33%; background-color:#dddddd;">
<para><text styleclass="Normal" style="font-size:9pt; font-weight:bold; vertical-align:baseline; color:#000000;" translate="true"> </text></para>
</td>
<td style="vertical-align:bottom; width:22%; background-color:#dddddd;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; font-weight:bold; vertical-align:baseline; color:#000000;" translate="true">Windows 32</text></para>
</td>
<td style="vertical-align:bottom; width:22%; background-color:#dddddd;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; font-weight:bold; vertical-align:baseline; color:#000000;" translate="true">Windows 64</text></para>
</td>
<td style="vertical-align:bottom; width:22%; background-color:#dddddd;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; font-weight:bold; vertical-align:baseline; color:#000000;" translate="true">Linux</text></para>
</td>
</tr>
<tr style="vertical-align:top">
<td style="vertical-align:bottom; background-color:#dddddd;">
<para><text styleclass="Normal" style="font-size:9pt; font-weight:bold; vertical-align:baseline; color:#000000;" translate="true">SomeDll.dll</text></para>
</td>
<td style="width:22%;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; vertical-align:baseline; color:#000000;" translate="true">1.0.4.78</text></para>
</td>
<td style="width:22%;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; vertical-align:baseline; color:#000000;" translate="true">1.0.4.77</text></para>
</td>
<td style="width:22%;">
<para style="text-align:center;"><text styleclass="Normal" style="font-size:9pt; vertical-align:baseline; color:#000000;" translate="true">to be defined</text></para>
</td>
</tr>
ご覧のとおり、2 番目のパラグラフには文字エンティティ (& # 3 2 ;) があります。私はそれを編集しません。編集が完了したら、.save
メソッドを使用してファイルを保存します。
問題は、文字エンティティがそれが表すもの (この場合はスペース " ") に保存されることです。プログラムでxmlファイルを再度開くと、その値がnullであるため例外が発生します。文字エンティティをエンティティ フォームに保存する方法はありますか?