XML is meant to be human readable, so use tag names and attribute names that are relevant to the business problem at hand.
XML对于人们来说是可读的,所以要使用一些与当前业务问题相关的标签名称和属性名称。
But once those readable attributes go through an XML parser, the layout of the attribute will probably be somewhat different than in the source XML.
但是,一旦那些可读的属性经过xml解析器,属性的布局可能与源xml稍微有些不同。
In both cases, the element should also contain a human readable value in the title attribute. For example.
无论哪种情况,元素都应该在title属性中包含人类可读的值。
SimpleXML's generation of element and attribute nodes on the fly as properties of other nodes makes for node traversal code that is almost as readable as the Zend Google data API classes.
SimpleXML动态生成元素和属性节点作为其他节点的属性,有利于获得几乎像ZendGoogle数据api类一样可读的节点遍历代码。
An XML-based syntax for specifying the generator's parameters makes the code more readable and easier to understand thanks to the attribute names.
得益于属性名称,用来指定生成器参数的基于XML的语法能让代码可读性更好,也更容易理解。
The usual option in such a case is to have another nested element with the URL in an attribute and a human-readable title in that element's content.
这种情况下通常可以选择方法是,用另一个嵌套的元素以URL 作为属性,而把供人类阅读的标题放在元素内容中。
The second important attribute is the label, which consists of the human-readable version of the category.
第二个重要的属性是label,包含易于阅读的类别版本。
Use them when the property value is complex and not legal or readable as an attribute value.
当property值很复杂,而且不合法或者不能读作一个attribute值时,就可以使用它们(传统的XML格式)。
Use them when the property value is complex and not legal or readable as an attribute value.
当property值很复杂,而且不合法或者不能读作一个attribute值时,就可以使用它们(传统的XML格式)。
应用推荐