This topic shows how to get the shallow value of an element.
本主题说明如何获取元素的浅值。
The following example declares an extension method that retrieves the shallow value of an element.
下面的示例声明了检索元素浅值的扩展方法。
If you want the value of an element (assuming it holds textual data), you need to use the text function.
如果需要元素的值(假设元素包含文本数据),需要使用text函数。
The examples you have seen so far use the "replace value of" operation to change the value of an element node.
到目前为止看到的示例都是使用“replacevalue of”操作修改元素节点的值。
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。
For instance, you can also create a nickname over a remote view that extracts part of an XML document or the value of an element. The Oracle view below will return the content of an XML element.
比如,您也可以在远程视图之上创建昵称,这个远程视图提取部分XML文档或元素的值。
For each attribute, you would create an element in the output entry and then copy the value of the attribute over.
对于每个属性,在输出条目中创建一个元素,然后复制属性的值。
You could get the data in an element, work with its children, find out the value of an attribute... and that's really about it.
您可以从某个元素中获得数据,操作其子元素,找出某个属性的值等,全部都是这方面的操作。
For example, you might want to create a message property based on the value of the root element of an XML payload or a specific price within a FIX message.
例如,您可能想要基于一个xml有效负载的根元素值或者一条FIX消息中的特定价格创建一个消息属性。
An XML schema can define the structure, the element and attributes, their data types, value ranges, etc. that are allowed in a set of XML documents.
XML模式可以定义一组XML文档所允许的结构、元素和属性、它们的数据类型、取值范围等。
If an element has this attribute with a value of 1.0, then the BC feature is enabled for the element itself and the sub-tree within it.
如果一个元素包含该属性,并且值为1.0,则对该元素本身及其中的子树启用bc特性。
In the output from calling the stored procedure, you can see the difference between extracting an XML element, and extracting the value of an XML element.
在调用存储过程的输出中,可以看到提取xml元素与提取XML元素值之间的差异。
So the return value (sort of a misnomer, but still a useful way to think about things) for an attribute selector is a value; for an element, it's a node set (containing a single node).
因此对于属性选择器,返回值(虽然不确切但是很有用)是一个值,对于一个元素则是一个节点集(包含一个节点)。
The relation type is defined by the rel attribute; for example, the value alternate signifies that the link provides an alternate representation of the resource described by the entry element.
关系类型在rel属性定义;例如,值alternate表明此链接提供了这个条目元素所描述的资源的另一种表示。
The value of the includes attribute is an XPath expression (possibly chosen from a very restricted subset of XPath) that identifies the element whose text is included.
includes属性的值是一个XPath表达式(可能从非常有限的xpath子集中选择),它确定了将包含其文本的元素。
Listing 11 USES the value of col2 as a parameter to restrict DELETE operations based on the value of an XML element (the zip or zip code element of a client's address).
清单11使用col2值作为参数根据一个XML元素(zip或客户端地址的邮政编码元素)限制DELETE操作。
In Listing 8, we show an example of an element with simple content that has an assertion facet that evaluates to true if the element's value is a multiple of 10.
在清单8中,我们展示了一个具有简单内容的元素示例,如果该元素的值是10的倍数,那么它的断言facet则计算为true。
Give the name of the target element in an outputclass attribute, migrate based on that value, and add the class attribute values afterward.
给出在classif属性中的目标元素的名称,基于值移植,随后添加 spec 属性。
Wherever you would check for an element name (any XPath statement that contains an element name value), you need to enhance this to instead check the contents of the element's class attribute.
在检查元素名的任何地方(任何包含元素名值的XPath语句)都需要改为检查元素的class属性的内容。
The value of the test attribute of the xs:assert element information item is an XPath expression that evaluates to either true or false.
assert元素信息项的test属性的值是一个XPath表达式,其值等于true或 false。
An fh: incremental element with a value of false (like that in Listing 2) indicates that the feed document in question is a complete representation of the feed's contents.
一个具有值false的fh:incremental元素(如清单2中所示)指出,所讨论的feed文档是feed内容的完整表示。
The value of the test attribute of the xs: assertion element facet is an XPath 2.0 expression or XPath 2.0 subset as defined by the XML Schema 1.1 specification that evaluates to either true or false.
如xmlSchema 1.1规范定义的那样,xs:assertion元素facet的test属性的值是一个XPath 2.0表达式或XPath 2.0子集,其值为true或false。
To create a live region using WAI-ARIA, you should add an "aria-live" property to the element with a value of "off", "polite", "assertive", or "rude".
要使用WAI - aria创建一个活动区域,您应该向带有“off”、“polite”、“assertive”或“rude”值的元素添加一个“aria -live”属性。
For example, suppose you want to perform a count of the rows where the XML data column has an element text with the value This should validate!.
例如,假设您想要计算其XML数据列的text元素的值为Thisshould validate !的行的数量。
The WHERE clause invokes the XMLExists function, specifying an XPath expression that prompts DB2 to navigate to the "zip" element and check for a value of 95116.
WHERE 子句调用XMLExists函数,指定一个XPath表达式,这个表达式使DB2找到 "zip"元素并检查元素值是否为 95116。"
The via subelement of the rev element contains an empty value.
rev元素的via子元素包含一个空值。
For example, consider an element example with an attribute "notation" that has a default value of "decimal". The DTD fragment might be.
假定我们考虑一个元素element,它带有一个“notation ”属性,其缺省值为“decimal ”。
Updates the value of an XML element stored in an XML document.
更新XML文档中存储的xml元素的值。
The outer DIV element with an ID attribute value of sidebar contains an inner DIV element with a class attribute called gutter.
外边的DIV元素的ID属性值为 sidebar,这个元素包含的内部 DIV具有class 属性值gutter。
The outer DIV element with an ID attribute value of sidebar contains an inner DIV element with a class attribute called gutter.
外边的DIV元素的ID属性值为 sidebar,这个元素包含的内部 DIV具有class 属性值gutter。
应用推荐