对于元素文本来说情况也一样。
元素文本内容就是参数值。
元素标签与元素文本节点是垂直堆放的。
The element labels and element text nodes are stacked vertically.
XML文档只需要解析元素与元素文本节点。
The XML document has only elements and element text nodes to parse.
我们的底线就是要在使用属性和元素文本的时候小心谨慎。
The bottom line is to be careful when using attributes and element text.
以下是常用集合:开始标记、结束标记、遇到的元素文本等等。
These are the usual collection: a tag starts, a tag ends, element text is encountered, and so on.
当您用编码的方式处理元素文本中的相同信息时,也会陷入同样的困境。
You can land yourself in the same predicament by encoding that same information in element text, like this.
以下是常用集合:开始标记、结束标记、遇到的元素文本等等。
These are the usual collection : a tag starts , a tag ends , element text is encountered , and so on.
所有的定位点元素文本都有一个不同的蓝色阴影,这取决于链接是否访问过。
All anchor element text will have a different shade of blue depending whether the link was visited or not.
把相应的元素文本从Input面板拖放到Output面板中刚创建的元素中。
Drag the corresponding element text from the Input panel to the newly created elements in the Output panel.
在创建XML元素文本时,可以为元素名称指定XML命名空间前缀。
When creating an XML element literal, you can specify the XML namespace prefix for the element name.
有一些技术使用了其他一些模式语言,尽管不是很常用,但是能够更好地处理属性和元素文本。
Although they are infrequently used, some techniques (that use other schema languages) work better with attributes and element text.
有时,缓冲区可能只附加一次内容(整个的元素文本内容),另外一些时候,可能会附加四到五次。
Sometimes, the buffer may only have one piece of content appended (the entire element's textual content); other times, this appending may happen four or five times.
在main . xml文件中,为每个标签和元素文本节点值添加一个TextView小部件。
In the main.xml file, add a TextView widget for each label and element text node value.
解析xml文档并使用标签输出元素值,将标签与元素文本节点值输出到TextView小部件上。
Parse the XML document and use labels to output the element values. The labels and element text node values are output to TextView widgets.
您只会看到START _ TAG与TEXT事件类型,它们分别对应于元素开始标签与元素文本节点。
You'll find only the START_TAG and text event types, which correspond with element start tags and element text nodes.
还好,我还可以再次使用清单3中定义的测试用例来验证文档的结构,并可以有效忽略元素文本值和属性值。
Fortunately, I can reuse the test case defined in Listing 3 to validate the document's structure, by effectively ignoring element text values and attribute values.
您可以等待一些元素或文本出现或者不出现。
在具有混合内容的元素的文本中指定一个约束规则。
Specify a constraining rule on the text in an element with mixed content.
清单18中的模板将元素从文本节点中分离出来。
The templates in Listing 18 isolate the elements from the text nodes.
很显然,浏览器必须保持元素和文本的顺序。
Obviously, the browser must preserve the order of elements and text.
它接受单个元素、文本节点或注释。
如果需要,可以翻译所有UI元素中的文本。
每个元素的文本数据都相同,不是吗?
All of the textual data of each element is identical, right?
现在剩下要做的就是用服务器的数据实际替代这些元素的文本。
Now all that's left is to actually replace the text of these elements with the server's data.
文档对象模型将XML文档内的元素、文本和其他类型的节点呈现为一系列的父子关系。
The document Object Model represents elements, text, and other types of nodes within an XML document as a series of parent-child relationships.
元素中的文本已经被正确替换。
标签元素用来显示静态文本。
可能需要规范化这个新元素的文本节点以简化后续操作。
Optionally, normalize the text nodes of this new element, to make sure things are easier later on.
不过要注意,它不但包含了目标元素的文本内容,还包含了其子元素的文本内容。
Notice, though, that this includes the textual content for the target element, as well as textual content for its child elements.
应用推荐