What is the difference between root node, root element and document element in XML?

前端 未结 1 1067
星月不相逢
星月不相逢 2020-12-07 02:20

I am reading W3C XML Path Language (XPath) Version 1.0 Section 5.1 Root Node,

The root node is the root of the tree. A root node does not occur except

相关标签:
1条回答
  • 2020-12-07 03:04

    In your XML:

    • a is the document element, sometimes called the root element, which is selected via /a.
    • The parent of a is the document's root node, which is selected via /.
    0 讨论(0)
提交回复
热议问题