Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Comment in XML 1

Status
Not open for further replies.

Hoops

IS-IT--Management
Dec 12, 2002
3
US
I'm relatively new to XML. Is there a way to put comments in XML like there is in ASP with the ' ?
 
Use
<!-- for beginning the comment and --> to end the comment [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Be advised that XML does not require parsers to retain comments in XML documents. Some will, since COMMENT_NODE is a valid node type, but a lot of parsers just strip comments.

Just make sure that anything in comments inside XML is not relevant to others who parse the document. They may not get to see them.

Fair warning,
Uura
~~~~
&quot;Common sense tells you that the world is flat.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top