Do you always have to have a root node with xml/xsd?

后端 未结 5 950
抹茶落季
抹茶落季 2020-12-03 11:49

Been looking at a tutorial and it has the following xml and xsd.:

\"http://yfrog.com/b9xsdandxmlj\"

Wha

5条回答
  •  無奈伤痛
    2020-12-03 12:31

    Root node is mandatory. It's also referred to as "Document Element" in W3C's nomenclature.

    Definition: There is exactly one element, called the root, or document element, no part of which appears in the content of any other element (reference: section 2.1 of W3C XML specs)

提交回复
热议问题