In valid XML, is it possible to have children with the same name as their parent? For instance:
<parent> <child> </child> <parent> </parent> </parent>
Thank.
There is nothing but a special DTD or XSD that would prevent this.
Yes, this is even true (sometimes) in XHTML. for example, XHTML is acceptable (inside the body of the page):
<div> <div> </div> </div>