QuestionQ47

VerifiedNETCONF/XML API

Which two XML tags are used to represent an element when no data exists?

Choose two
Explanation

An XML element with no content can be expressed in two equivalent ways: a paired empty tag (<name></name>) or a self-closing empty-element tag (<name/>). Both notations are defined by the XML specification as valid representations of an empty element. The bracket-based notations ([name] and [name][/name]) are not valid XML syntax, since XML requires angle brackets for tags.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!