Which two XML tags are used to represent an element when no data exists?
Choose two
A.
< name > < /name >
B.
[name]
C.
[name][/name]
D.
< name/ >
The Answer Is:
A, D
This question includes an explanation.
Explanation:
In Extensible Markup Language (XML), an empty element is an element that contains no text content, values, or child nodes. The W3C XML standard specifies two syntactically valid methods for declaring empty elements. The first method uses a pair of opening and closing tags with no content between them: < name > < /name > . The second method uses self-closing (empty-element) tag syntax, where a forward slash is placed immediately before the closing angle bracket: < name/ > . Both notations are functionally identical and fully supported across the Junos XML API and NETCONF subsystems when representing empty tags or boolean flag indicators. Bracketed notations such as [name] or [name] [/name] are invalid in XML syntax.
[Reference: JNCIA-DevOps Study Guide — XML Syntax Basics: Element Tags and Empty Element Representation., ]
JN0-224 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"