How do I comment attributes inside an XML tag?
Is it possible to comment one or several attributes inside an XML tag? Something like /* */ from C. I have tried using <!-- --> , but it was unsuccessful. <element attribute1="value1" attribute2="value2" <!-- attribute3="value3" (commented value) --> > No, this isn't possible. Comments are not allowed in an XML open tag. Depending on your application, you might get away with "commenting out" the attributes by prefixing their names with "_", or you might not (if the XML is validated against a schema or all attributes are parsed). Because whitespace is allowed, and most editors support line