The first query returns the full element node, i.e. 29, while the second query only returns its text node value 29.
第一个查询将返回完整的元素节点,即29,而第二个查询仅返回其文本节点值29。
The fourth predicate $i/*/price = 29 looks for price elements under any root element, not just "book."
第四个谓词 $i/*/price =29 将查找任何根元素下的 price元素,而不仅仅是在 “book” 元素下的。
The former identifies the element node "price", the latter points to the text node with the value "29".
前者识别了元素节点“price”,而后者指向值为“29”的文本节点。
As another example, Update 29 USES the COPY clause to only get the customer's address, and the RETURN clause to embed the modified address in a new "sendto" element.
更新29给出另一个示例,它使用COPY子句只获取客户的地址并在return子句中把修改后的地址嵌入新的“sendto”元素。
The value of an element at the lowest level is equal to its text node, for example the value of the element "price" is "29."
最底层元素的值等于其文本节点,例如,元素“price”的值为29。
The third predicate uses the star (*) as a wildcard such that it looks for any child element under "book" with a value of 29.
第三个谓词使用了星号 (*)作为通配符,这样它将查找 “book”下值为 29 的任何子元素。
The third predicate uses the star (*) as a wildcard such that it looks for any child element under "book" with a value of 29.
第三个谓词使用了星号 (*)作为通配符,这样它将查找 “book”下值为 29 的任何子元素。
应用推荐