私は次のXML構造を持っています:
<Main>
<Node1>Definite</Node1>
<Node2>Definite</Node2>
<Node3>Definite</Node3>
<Node4>Definite</Node4>
<Node5>Definite</Node5>
<Node6>Definite</Node6>
<A>Possible</A>
<B>Possible</B>
<C>Possible</C>
<D>Possible</D>
<E>Possible</E>
<F>Possible</F>
<G>Possible</G>
<H>Possible</H>
<I>Possible</I>
</Main>
個々の文字という名前のノード。<A>
他のすべてのノードが明確であるのに、XML構造内に存在しない可能性のあるノードです。
構造内にノードを挿入して<ZZZ>
、常に以下に示す位置に配置する必要があります。
<Main>
<Node1>Value</Node1>
<Node2>Value</Node2>
<Node3>Value</Node3>
<Node4>Value</Node4>
<Node5>Value</Node5>
<Node6>Value</Node6>
<A>Value</A>
<B>Value</B>
<C>Value</C>
<D>Value</D>
<E>Value</E>
<ZZZ>Value</ZZZ>
<F>Value</F>
<G>Value</G>
<H>Value</H>
<I>Value</I>
</Main>
つまり、ノード<E>
と言って<C>
、<H>
存在しなかったとすると、次のようになります。
<Main>
<Node1>Value</Node1>
<Node2>Value</Node2>
<Node3>Value</Node3>
<Node4>Value</Node4>
<Node5>Value</Node5>
<Node6>Value</Node6>
<A>Value</A>
<B>Value</B>
<D>Value</D>
<ZZZ>Value</ZZZ>
<F>Value</F>
<G>Value</G>
<I>Value</I>
</Main>
これが十分に明確に説明されていることを願っています:)