Can I do something like this?
<root>
<element>
<child element="foo" />
</element>
</root>
and like this?
<root>
<element element="foo" />
</root>
Are there any drawbacks?
Technically, there is nothing preventing you to do that in XML. Nor at the XML Schema, XQuery or XSLT levels. Two aspects to take into account though:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.