On the other hand: If the information is expressed as an atomic token, use attributes.
另一方面,如果信息用原子记号表示则使用属性。
When do I use elements and when do I use attributes for presenting bits of information?
什么时候使用元素,什么时候使用属性来表示信息位?
Do not use namespaces as mere carriers of bits of information for related elements; use attributes instead.
不要将名称空间仅仅当作相关元素的信息位的载体使用;请将属性用于这种用途。
Related to XML document design, a common question is when to use attributes vs. elements and how that choice affects performance.
与XML文档设计相关的一个常见的问题是,何时使用属性,何时使用元素,以及这里做出的选择对性能有怎样的影响。
There's no need to go through the read_inheritable_attribute macro to use attributes because these are class instance variables defined by ActiveRecord.
不需要通过 read_inheritable_attribute宏来使用属性,因为这是ActiveRecord定义的类实例变量。
Describes how you can use attributes to customize metadata.
描述如何使用特性自定义元数据。
There are no rules about when to use attributes, and when to use child elements.
何时用属性或何时用子元素没有规定。
You can use attributes to describe your code in practically any way conceivable and to affect run-time behavior in creative new ways.
您可以使用属性以任何您能想到的方式来描述您的程序码,和以具创意的新方式来影响执行阶段行为。
This option is intended to support existing code which relies on a particular ordering. For new code, it is better to use attributes.
这个选项用于支持现存的依赖特定顺序的代码,对于新代码,最好使用编译属性。
But if you do not use attributes, you are leaving out a very important aspect of XML's power, and you're probably better off using some delimited text format.
但是如果不使用属性,就抛弃了XML强大功能的一个重要方面,您可能最好是改用某种分隔文本格式。
If you consider the information to be peripheral or incidental to the main communication, or purely intended to help applications process the main communication, use attributes.
如果认为该信息对于传递的主要信息而言是外围的或者附属性的,或者单纯用于帮助程序处理传递的主要信息,则使用属性。
If you consider the information to be peripheral or incidental to the main communication, or purely intended to help applications process the main communication, use attributes.
如果认为该信息对于传递的主要信息而言是外围的或者附属性的,或者单纯用于帮助程序处理传递的主要信息,则使用属性。
应用推荐