I have an XML spec that looks like this:
<Root>
<Directory Name="SomeName">
<TextFile Name="ExampleDocument.txt>This is the content of my sample text file.</TextFile>
<Directory Name="SubDirectory">
<Speech Name="Example Canned Speech">
...
</Speech>
</Directory>
</Directory>
</Root>
Note that Directory elements can contain other Directory elements. How can I represent that using W3C Schema?
You need to create a recursive
<complexType>to represent your<Directory>type. The following is an example of this technique, given the elements you provided.