本文介绍了XML元素的正确术语是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发SOAP应用程序,并且由于它基本上使用XML作为数据容器,所以我对XML元素的正确术语感到好奇.

I am working on a SOAP app, and since it basically uses XML as it's data container, I became curious on what the correct terms for the XML elements are.

例如,我们有标头,正文,信封,但是soap操作被称为什么?

For example we have header, body, envelope, but what are is the soap actions called?

我特别想知道<something_something>字段是什么?

I am specifically wondering what the <something_something> field is called?

在肥皂动作中,还可以找到键及其值,例如<thisIsAKey>andThisIsItsValue</thisIsAKey>

And inside a soap action one can also find keys and their values such as for example <thisIsAKey>andThisIsItsValue</thisIsAKey>

<thisIsAKey></thisIsAKey>叫什么,andThisIsItsValue值叫什么?

他们只是称呼键和值还是什么?

Are they called just keys and values or what?

我尝试用Google搜索XML Protocol.

I tried to google for XML Protocol.

推荐答案

查看 W3C XML建议,以获取有关XML元素和属性的正确术语的答案:

Look to the W3C XML Recommendation for answers regarding proper terminology for XML elements and attributes:

因此,在您的示例中,添加了一个属性:

So, for your example, with an attribute added:

  • 元素 :<thisIsAKey attrname="attrval">andThisIsItsValue</thisIsAKey>
  • 元素名称 :thisIsAKey
  • 开始标记 :<thisIsAKey>
  • 结束标签 :</thisIsAKey>
  • 内容 :andThisIsItsValue
  • 属性 :attrname="attrval"
  • 属性名称 :attrname
  • 属性值 :attrval
  • Element: <thisIsAKey attrname="attrval">andThisIsItsValue</thisIsAKey>
  • Element name: thisIsAKey
  • Start tag: <thisIsAKey>
  • End tag: </thisIsAKey>
  • Content: andThisIsItsValue
  • Attribute: attrname="attrval"
  • Attribute name: attrname
  • Attribute value: attrval

这篇关于XML元素的正确术语是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-13 03:34