One of our users found this problem. He added dashes to his comment when checking in a web.config file and when the History tag updated the file the XML became invalid. Below is an example. The three dashes (the user said it could be 2 or more) highlighted in red below caused the problem.
<!-- $History: /blahblah/Web.config $-->
<!-- -->
<!-- ****************** Version 67 ****************** -->
<!-- User: user Date: 2009-02-12 Time: 16:19:01-05:00 -->
<!-- Updated in: /blahblah -->
<!-- Remove reference to bgi.table363 for subaccount accessible webmethod. -->
<!-- Table363 is to be retired 3/13/2009 --- OBSOLETE-VALID 9X ACCTS FOR MISC -->
<!-- CASH -->
<!-- -->
Regards,
Joe
XML file becomes invalid if dashes in comment
Moderator: SourceGear
Re: XML file becomes invalid if dashes in comment
Thanks for the report. What version of Vault are you using?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: XML file becomes invalid if dashes in comment
On further investigation, isn't related to Vault. Comments in XML cannot contain dashes (two or more) except at the
>> beginning (<!--) and end (-->).
http://www.w3.org/TR/REC-xml/#sec-comments
>> beginning (<!--) and end (-->).
http://www.w3.org/TR/REC-xml/#sec-comments
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager