In valid XML, is it possible to have children with the same name as their parent? For example:
<parent>
<child>
</child>
<parent>
</parent>
</parent>
Thank you.
There is nothing aside from a specific DTD or XSD that would prevent this.
Yes, this is even valid (sometimes) in XHTML. for example the following is valid XHTML (within a page body):
<div>
<div>
</div>
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With