How to add comment in xml
i want to coment certain element in xml using c# as below,pls help me as iam new to c# coding
3 Answers
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 attend5days leftRegister
nallyaRank #8,588 · 219 reputationPosted Dec 11, 2012, 8:37 PM EST
Comments in XML
The syntax for writing comments in XML is similar to that of HTML.
http://www.tizag.com/xmlTutorial/xmlcomment.php
pramod e ebenezer3 reputationPosted Dec 11, 2012, 8:41 PM EST
VulpesRank #55 · 29.2K reputationPosted Dec 12, 2012, 2:04 AM EST
The following LINQ to XML code should achieve that: