问题
I know this probably sounds like a rookie question, but I've looked and "Googled" all I know to "Google" and I still can't find anything.
I'm looking for somewhere that has just a list of all XML tags, with their properties, and the definitions of those properties (aka - what they affect/do).
I figured MSDN, W3C, or even here on SO would have this somewhere, but I couldn't find it in either place, as well as various others. And it may be that I'm looking in the wrong spot on these sites or just not Googling something in the way that would give me what I'm looking for, but I've done all that I know to do.
So I was wondering if anyone had any links that they knew of that gave a listing of XML tags and their sub-properties/respective definitions?
More specifically, I was given some example XML on this question that I asked previously, and the long and short of it is this: I'm trying to integrate some code metrics software in an automated build in TFS 2010, and I'm really close to doing so--it's just a matter of incorporating the right XML to point to this code metrics software. But through this whole process I've learned that I have no clue what many of the XML tags/properties are actually doing. Some of them are self-explanatory, but others not so much.
And so, again, what I'm asking is if anyone could point me to a(some) site(s) that have a list of XML tags, their properties, and what the tags/properties are actually doing?
Again, I know this sounds like a rookie question--because it is. I'm a very inexperienced programmer, and I'll admit that. And I'm just looking for some help as I continue to learn more. I just ask that you don't just delete this or disregard this just because it's a more simple/lower-level question. I've done all I know to do and I need help, and that's what this site is for.
回答1:
There is no authoritative source of all XML tags.
XML means Extensible Markup Language. It is a way of annotating text so that machines can share information.
There are many (thousands? millions?) of schemas, each of which describes a different vocabulary.
You can talk about the set of allowed elements (tags) and attributes (properties) for a given vocabulary only. For example, Visual Studio stores much of its configuration and project information in XML files, but each type has a different schema, so therefore a different set of tags.
Often in addition to the schema, there is some sort of documentation which explains the usage of the various elements and their attributes.
XML can be used for many purposes; some include programming languages (e.g. XSLT), configuration files, documents (Word, Excel, and Powerpoint files now are all XML files zipped into packages) and log files.
回答2:
I'm trying to integrate some code metrics software in an automated build in TFS 2010, and I'm really close to doing so--it's just a matter of incorporating the right XML to point to this code metrics software
Right, so it's not XML itself you're after, it's the particular schema used by TFS 2010. So you may want the msbuild documentation. In previous versions of TFS this was also used for the Team Build file, but IIRC the Team Build in TFS2010 is based on Workflow Foundation, so you'd probably be better off using the designer (haven't used it yet, so I can't offer any more help than that).
来源:https://stackoverflow.com/questions/4660021/xml-tags-properties-and-their-definitions