Forum Discussion

dhoffer's avatar
dhoffer
New Contributor
9 years ago

Saving SoapUI project combines project with XML header comments

As part of our build process all our source and SoapUI project files have to contain a header section that contains our license agreement.  Its no problem to add these and for XML files (including SoapUI project files it adds the XML comments right after the XML prolog.

 

The problem is that later when the project files are opened in SoapUI and then saved, SoapUI corrupts the file because it puts the opening soapui-project tag on the same line as the closing XML comments.  E.g. after saving the file the line looks like this:

--><con:soapui-project

 

That in itself is not invalid but because it combined the content with the prior comment the next time our build updates the license header it replaces that line with --> as it cannot account for random content in the same line as the license header comments.

 

How can I fix this?  Is there a way I can configure SoapUI to not put any XML content on same line as comments?

 

No RepliesBe the first to reply