I am developing an app for my customer. The content that we create in the strings.xml are proprietary to them and they want a copyright notice and their trademark notice inside the XML file.
I want to be able to list both my copyright, and my customer's copyright.
What is the practice for including such information into the xml? Do I create a tag called "copyright"?
XML are not meant to be viewed by the public, but by developers or tools.
Carrying author information is either part of the data (as in blog articles having an author) or it doesn't.
You can however use XML comments for that. Or you can define your own XSD and structure everything like this:
Also if it is needed by third party applications (to be extracted and shown) it would be more useful if you used XML elements not comments, as they are easy to manipulate.
I mean it's ok to have a comment with a simple text but if you want to put complex info there like I showed in my example, with sub-fields like author/copyright/license, it is easy for third party programmers to get those Node objects.
As a variation if you're feeling particularly namespacey:
With namespaces the third party programmers will have an easy time separating the two layers of information.