How to Write XML Remarks
XML (Extensible Markup Language) is a computer programming language that allows users to define their own custom markup tags. Like HTML (HyperText Markup Language), XML uses some standard structural tags, including the remark or "comment" tags. These tags allow you to write messages within the XML code that are not executed when the page is rendered. You can think of XML remarks as notes to yourself embedded right in your XML code. This makes keeping track of XML variables and custom markup tags much easier than trying to remember them all.
Instructions
-
-
1
Open your XML document in an XML or text editor. To use the default Windows text editor, right-click the XML document, then click "Open With." Click to select "Notepad" from the application list, then click "OK."
-
2
Click to select a point in the XML document where you want to create the remark.
-
-
3
Type "<!--" and press the "Spacebar."
-
4
Type your XML remark. Do not include any double dashes (--) in the remark, as they will end the remark text and anything typed after them will show up when the XML document is rendered.
-
5
Press "Spacebar" to create a blank space at the end of the remark text.
-
6
Type "--!>" to end the remark.
-
7
Click the "File" menu, then click "Save" to save the XML document.
-
1
Tips & Warnings
When writing a remark or comment using XML in Visual Basic or Visual Studio, type three single quotes (''') followed by a space at the start of the definition line to define the following line text as a remark.