I don't know the correct term to use in the title. It's been ages since I've messed with XML, and I don't use it in any professional way, nor am I headed that direction.
(Before during and after this question, I will be searching http://www.w3.org and other sites.)
My question is this: can you have multiple sections of the same name? For example,
<A>
<X name="one" />
<X name="two" />
<X name="three" />
</A>
<B>
<X name="red" />
<X name="green" />
<X name="blue" />
</B>
Could the above also be done and have the same meaning as:
<A>
<X name="one" />
</A>
<B>
<X name="red" />
<X name="green" />
</B>
<A>
<X name="two" />
<X name="three" />
</A>
<B>
<X name="blue" />
</B>
Or more to the point, like this:
<A> <X name="one" /> </A>
<A> <X name="two" /> </A>
<B> <X name="red" /> </B>
<B> <X name="green" /> </B>
<A> <X name="three" /> </A>
<B> <X name="blue" /> </B>
I hope this poorly-worded question conveys the general idea. Perhaps I will be able to better word this later.
For those inquiring minds who want to ask, "Why?" my answer is this: I am trying to automate a documentation-to-code process; given a map file sucked into Excel and processed in Excel to correlate items, and then use Excel to output text containing XML-formatted fields. The "group" (A and B in my example) containing an "item" (X in the example) are not necessarily hierarchically display/processed.
Thank you for your attention and any assistance you provide.
[edit]Ah, I believe http://www.w3schools.com/xml/default.asp was where I was trying to find earlier.
This leads me to believe my answer is, "Yes, you can do this." And I believe the term in the title ought to be Child Elements rather than Sections.