XML attribute and element
difference between xml attribute and element
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Aug 16, 2019, 2:24 AM EDT
Every document must have a one top level element called root element.
XML element contents are part of the basic document contents. that are store information data.
XML elements are represented by a tags.
XML Element Name must be follow this things
Element names must be alphabetic or numeric character contains.
Element name can't have white spaces contains and
name can't start with capital letter, numeric or mixed letter.
If element contents absence(empty) then you can write element following two way to represent valid standard.
XML element can have attributes for identify elements.
XML standard specifies element may have define multiple attributes along with unique attribute name.