Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C#でソースファイルからターゲットファイルにノードを複製して別のファイルからxmlファイルを作成している間、空のノードの構造は次のように<noeud></noeud>なります<noeud/>
<noeud></noeud>
<noeud/>
私はこれを試しました:
if (nodeSource.InnerText.Equals("")) XmlNode nodeDestination = NodeSource.CloneNode(false);
同じ構造を維持する方法はありますか。