QuestionQ47Verified/NETCONF/XML APICopy linkReport a problemAsk AstroTutorSave questionWhich two XML tags are used to represent an element when no data exists?Choose twoA<name></name>B[name]C[name][/name]D<name/>Show AnswerAnswerExplanationAn 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 moreExtensible Markup Language (XML) 1.0 - W3C RecommendationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion