Add the following tag above the closing tag.
在结束标记上方添加以下标记。
For example, every paragraph tag needs its closing tag .
例如,每个段落标记都需要结束标记。
By doing this, it can omit the closing tag of an element.
通过这种方法,它可以省略元素的结束标签。
Forced line break — note that it doesn't require a closing tag.
强制断行——注意它不需要关闭标签。
The next event indicates the closing tag for the product element.
下一个事件指出product元素的结束标记。
删除9行的结束标记。
This element requires a closing tag.
此元素需要关闭标签。
When creating single elements use the closing tag or XHTML format.
当你创建单个元素时,请使用闭合标签或XHTML格式。
NextTag can skip over any insignificant whitespace up to the next opening or closing tag.
nextTag能够跳过所有无关紧要的空白直到下一个开始或结束标记。
Finally, the framework writes out any appropriate closing tag for the component's open tag.
最后,此框架为此组件的打开标签写出适当的结束标签。
To make this well-formed, you would need to switch either the opening tag order or the closing tag order.
要使之格式良好,要么切换开始标记顺序,要么切换结束标记顺序。
Within a server element, the element '% 1' is missing its closing tag or overlaps with element '% 2'.
在服务器元素内,元素“%1”缺少结束标记或与元素“% 2”重叠。
Note: You might have noticed from the previous example that the XML declaration did not have a closing tag.
注意:也许你在前面的案例中已经注意到,XML声明并没有包含结束标签。
It generates two events for each price-quote element: one event for the opening tag and one event for the closing tag.
它为每个price - quote元素生成两个事件:一个开始标记事件和一个结束标记事件。
To wait for the stream's closing tag (in order to finalize building the DOM) means waiting until the conversation ends.
等待流的关闭标签(以便最终建立DOM)就意味着等待整个会话结束。
EndElement represents the element's closing tag (or simply the end of the element's markup, if it is an empty element).
EndElement表示元素的结束标记(或元素标记的结束,如果是空元素的话)。
The declaration is not a part of the XML document itself. It is not an XML element, and it should not have a closing tag.
声明并不是XML文档本身的一部分,它也不是一个XML元素,所以它并不需要包含结束标签。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
Note: the DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element, and it should not have a closing tag.
注意:DOCTYPE声明并不是XHTML文档自身的一部分。它也不是XHTML元素,它不该有关闭标签。
If you erased a closing tag, typed a tag name incorrectly, or perhaps overtyped a symbol, such as a less than sign (<), you might run into this problem.
如果您误删了一个结束标记,键入的标记名不正确或者多打了一个小于号 (<),则有可能遇到这种问题。
Well-formed means there can be no overlapping elements, all elements must contain a closing tag, attributes must be quoted and given a value, and the case of the characters is important.
“形式完好”意味着不可以重叠(overlapping)元素,所有元素都必须包含关闭标签,而属性必须包含双引号和一个值,字母大小写也同样重要。
The solution ElementTree adopts is to give each node a .tail attribute, which contains all the text after a closing tag but before the next element begins or the parent element is closed. For example
ElementTree 采用的解决方案赋予了每个节点一个 .tail属性,它包含了位于结束标记之后,下一元素开始或父元素结束之前所有的文本。
The solution ElementTree adopts is to give each node a .tail attribute, which contains all the text after a closing tag but before the next element begins or the parent element is closed. For example
ElementTree 采用的解决方案赋予了每个节点一个 .tail属性,它包含了位于结束标记之后,下一元素开始或父元素结束之前所有的文本。
应用推荐