尽管它们的语法不同,但是无论使用哪一个来基于元素名或属性值从文档选择重要的或感兴趣的节点,都相当容易。
Although their syntax is different, using one or the other to select important or interesting nodes based on element names or attribute values from a document is relatively easy.
换句话说,对应xml语法中的每个概念定义相应的类:元素、属性、实体、文档。
In other words, classes are defined for every concept in the XML syntax: element, attribute, entity, documents.
语法简写(参见清单5)作为首选的方法被保留,可以在步骤元素上使用名称-值属性定义选项。
The syntactic shorthand (see Listing 5) was retained as the preferred method whereby options can be defined with name-value attributes on the step element itself.
请注意,事件处理器接收元素名称、名称空间和属性列表作为来自语法分析器的参数。
Notice that the event handler receives the element name, namespace and attribute lists as parameters from the parser.
这种类 SQL语法能够遍历XML文档来访问元素和属性。
This is SQL-like syntax that can traverse through an XML document to reach elements and attributes.
我们可以使用数组语法访问多值属性的个别元素,例如第一个地址。
We can access individual elements of many-valued properties, such as the first address, using array syntax.
或者,或许是最好的方式,您可以使用Haskell或Python中非常类似于list comprehensions的语法,只对具有期望属性的元素进行操作。
Or, maybe best of all, you can use a syntax much akin to list comprehensions in Haskell or Python, and only operate on elements that have a desired property.
假定您知道什么是HTML元素或标记、属性表示什么、HTML标记的基本语法、web页面的常规结构等等。
It assumes that you are aware of what an HTML element or tag is, what an attribute means, the basic syntax of HTML markup, the general structure of a Web page, and so on.
界面显示了XML的一些细节(例如,元素和属性之间的语法区别)。
The interface surfaces some specifics of XML (for example, the syntax differentiates between elements and attributes).
XML的基本语法由嵌套元素组成,部分元素具有属性和内容。
The basic syntax for XML consists of nested elements, some of which have attributes and content.
Zend_Feed组件:读取关于使用具有自然语法的RSS和Atomfeed的更多信息,以便访问feed元素、feed属性和条目属性。
The Zend_Feed component: Read more about consuming RSS and Atom feeds with a natural syntax for accessing elements of feeds, feed attributes, and entry attributes.
最后,需要更改一些小的语法差异;例如,一个属性元素内的ref元素有一个id属性,而非spring中使用的bean属性。
Finally, there are some minor syntactical differences that need to be changed; for example, the ref element inside a property element has an id attribute instead of the bean attribute used in Spring.
清单1对于sax语法分析器是很方便的,因为它将信息存储为价格元素的属性。
Listing 1 is convenient for a SAX parser because the information is stored as attributes of price elements.
清单1对于sax语法分析器是很方便的,因为它将信息存储为价格元素的属性。
Listing 1 is convenient for a SAX parser because the information is stored as attributes of price elements.
应用推荐