adplus-dvertising
frame-decoration

Question

Which of the following is the correct syntax to insert comments into an XML document?

a.

<comment> this is a comment <⁄comment>

b.

<? - This is a comment ->

c.

<! – This is a comment -->

d.

<⁄This is a comment>

Answer: (c).<! – This is a comment -->

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is the correct syntax to insert comments into an XML document?