Greetings

*** Ignore previous post as the XML was wrong! ***

I have an XML doc which I'd like to convert into a schema, but the tools
I am using (VS.NET) won't do it as it has the same element as both a child
and parent see below:

<Root>
<Files>
<group name="root">
<group name="Child1">
<Element />
</group>
<group name="Child2">
<Element />
<group name="Child2">
<Element />
<Element />
</group>
</group>
</group>
</Files>
</Root>

The idea being to be able to create a type of folder based system like a
filesystem has. Now if I'm barking up the wrong tree with this structure,
please advise. I'd be most interested if this is just a limitation of my
software or basically bad design!

I have yet another example although slightly different, and that is I wish
to use the same element in different parent elements eg:

<Root>
<Element1>
<Info name="Info1" />
<Info name="Info2" />
<Element2>
<Info name="Info2" />
<AnotherElement />
</Element2>
</Element1>
</Root>

I wouldn't have thought this was a problem, but again the software doesn't
like it.

Your suggestions would be well appreciated.

Regards

Garry Mc