What's the difference between an element and a node in XML?

前端 未结 13 1392
清酒与你
清酒与你 2020-11-28 00:57

I\'m working in Java with XML and I\'m wondering; what\'s the difference between an element and a node?

相关标签:
13条回答
  • 2020-11-28 01:24

    A node is defined as:

    the smallest unit of a valid, complete structure in a document.

    or as:

    An object in the tree view that serves as a container to hold related objects.

    Now their are many different kinds of nodes as an elements node, an attribute node etc.

    0 讨论(0)
提交回复
热议问题