Additionally, for each row, we will return a valid XML document containing a root element only.
另外,对于每一行,返回一个有效的XML文档,其中只包含一个根元素。
This is a sequence of elements, yet not a valid XML document because it doesn't have a root element.
这是一系列元素,还不是有效的XML文档,因为它没有根元素。
Like previous examples, we want to return a valid XML document, so we will wrap the result of the XQuery with the root XML element.
与前面的示例相似,我们要返回一个有效的XML文档,所以将XQuery的结果封装在xml根元素中。
For our first example, the middle step of creating the XML document is not our concern; we simply want to generate a valid XML document.
对于第一个示例,第二步“创建XML文档”不是我们所关心的;我们只想生成一个有效的XML文档。
As with the other examples, the DTD language does not contain any instructions about what to do to recognize or create a valid XML document.
和其它示例一样,DTD语言不包含任何有关如何识别或创建有效XML文档的指令。
A good way to create a valid XML document is to first use the SQLToXML run time library to generate one, then modify it to supply new values for update.
首先采用SQLToXML运行时库来创建有效的XML文档,然后再修改它来提供用于更新的值是个很好的方法。
Assuming that your XHTML document is valid (and it is, right?), the id matching queries will only return one element, because IDs must be unique in a valid XML document.
假设您的XHTML文档是有效的(确实是的,对吧?),ID匹配查询将只返回一个元素,因为在有效的XML文档中,ID必须是惟一的。
Assuming that your XHTML document is valid (and it is, right?), the id matching queries will only return one element, because IDs must be unique in a valid XML document.
假设您的XHTML文档是有效的(确实是的,对吧?),ID匹配查询将只返回一个元素,因为在有效的XML文档中,ID必须是惟一的。
应用推荐