最全的xpath语法

原文:https://msdn.microsoft.com/zh-cn/library/ms256086(v=vs.80).aspx

本主题回顾整个 XPath 参考中出现的语法示例。所有示例均基于 XPath 语法的示例 XML 文件 (inventory.xml)。有关在测试文件中使用 XPath 表达式的示例,请参见本主题最后的“联合 ( | ) 示例”。

表达式 引用
XML
./author

当前上下文中的所有  元素。注意,此表达式等效于下一行中的表达式。

XML
author

当前上下文中的所有  元素。

XML
first.name

当前上下文中的所有  元素。

XML
/bookstore

本文档的文档元素 ()。

XML
//author

文档中的所有  元素。

XML
book[/bookstore/@specialty = @style]

style 属性值等于文档根目录的  元素的 specialty 属性值的所有 元素。

XML
author/first-name

属于  元素的子级的所有  元素。

XML
bookstore//title

 元素中更深的一级或多级(任意子代)的所有 </tt> 元素。注意,此表达式不同于下一行中的表达式。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-9" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_3d917a99-42be-4b15-afa6-93d43c33aaf1" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">bookstore/*/title </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">属于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><bookstore></tt> 元素的孙级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><title></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-10" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_7511036d-45ed-47db-8bde-78f99dac1fd5" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">bookstore//book/excerpt//emph </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><excerpt></tt> 子级中的任意位置和 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><bookstore></tt> 元素中的任意位置的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><emph></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-11" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_02a24452-80a0-4e52-9d21-28e41649834c" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">.//title </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文中更深的一级或多级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><title></tt> 元素。注意,本质上只有这种情况需要句点表示法。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-12" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_05cfa525-194a-42e0-889d-81acaf81097b" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author/* </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">属于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素的子级的所有元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-13" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_556c82d2-d2b1-4b29-9815-e343affa01e9" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book/*/last-name </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">属于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的孙级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-14" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_6508f1d9-563f-44c3-97b0-c91ac825649e" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">*/* </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文的所有孙级元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-15" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_78b1edd3-a1fa-4412-8869-a2fd8a714b22" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">*[@specialty] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">具有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">specialty</tt> 属性的所有元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-16" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_66f744d6-15fd-4366-8903-d09ab200f71a" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">@style </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">style</tt> 属性。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-17" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_b74aff14-c418-481a-899b-8adf1969bce1" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">price/@exchange </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文中 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><price></tt> 元素的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">exchange</tt> 属性。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-18" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_d085e5da-cb8a-4a87-89aa-c814011610f7" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">price/@exchange/total </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">返回空节点集,因为属性不包含元素子级。XML 路径语言 (XPath) 语法允许使用此表达式,但是严格意义上讲无效。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-19" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_df344d79-794c-498a-bb12-b2d339945134" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[@style] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文的具有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">style</tt> 属性的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-20" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_30386305-db41-4509-b519-f9a142047e6d" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book/@style </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">style</tt> 属性。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-21" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_0cba16ad-a888-4136-8b46-3c7cfa49c065" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">@* </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前元素上下文的所有属性。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-22" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_f7d99a01-2d5e-4ac6-aa61-58a659d3d64c" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">./first-name </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点中的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><first-name></tt> 元素。注意,此表达式等效于下一行中的表达式。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-23" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_a7c840c9-e175-4f28-94bf-9b7af8f10c70" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">first-name </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点中的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><first-name></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-24" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_385ef4ec-0297-4a60-a123-232a37c7648c" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点中的第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-25" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_fb436f4b-f689-4bfb-b8e0-69472475cae2" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[first-name][3] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">具有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><first-name></tt> 子级的第三个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-26" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_42105b65-d465-4426-a071-68556095e66a" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">my:book </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">my</tt> 命名空间中的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-27" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_2d39af84-2985-41b0-8635-4957e8e64ee1" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">my:* </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">my</tt> 命名空间中的所有元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-28" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_571a4801-befc-40d6-bdee-3ef5da94727f" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">@my:* </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">my</tt> 命名空间中的所有属性(不包括 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">my</tt> 命名空间中的元素的未限定属性)。</span></p> </td> </tr> </tbody> </table> </div> </div> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <span style="font-size:18px">注意,索引相对于父级。考虑以下数据:</span></p> <div id="code-snippet-29" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_e6e27363-073c-4972-83bf-80bd3bb4e57b" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px"><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">/></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">/></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">/></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">/></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> </span></pre> </div> </div> </div> </div> <div class="labelheading"></div> <div class="tableSection"> <div class="contentTableWrapper" style="overflow-x:auto"> <table width="100%" style="border-collapse:collapse; margin-bottom:20px; margin-top:20px; word-break:break-word; border:1px solid rgb(187,187,187)"> <tbody> <tr> <th style="padding:10px 8px; color:rgb(99,99,99); border:1px solid rgb(187,187,187); font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; background-color:rgb(237,237,237)"> <span style="font-size:18px">表达式</span></th> <th style="padding:10px 8px; color:rgb(99,99,99); border:1px solid rgb(187,187,187); font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; background-color:rgb(237,237,237)"> <span style="font-size:18px">引用</span></th> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-30" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_9c083dc5-96d3-41b8-ae90-8f13f2ff22e0" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">x/y[1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">每个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><x></tt> 的第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><y></tt> 子级。此表达式等效于下一行中的表达式。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-31" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_12493780-5bd7-4088-83ee-2bf5cb6e0fa4" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">x/y[position() = 1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">每个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><x></tt> 的第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><y></tt> 子级。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-32" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_f1e2b1e0-d33c-4ce5-bb8e-1fb7e6267281" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">(x/y)[1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><x></tt> 元素的整个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><y></tt> 子级元素集中的第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><y></tt>。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-33" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_b0c0cc9a-353a-4a30-8e70-6cee715fc5c3" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">x[1]/y[2] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><x></tt> 的第二个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><y></tt> 子级。</span></p> </td> </tr> </tbody> </table> </div> </div> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <span style="font-size:18px">其他示例引用 XPath 的示例 XML 文件。</span></p> <div class="labelheading"></div> <div class="tableSection"> <div class="contentTableWrapper" style="overflow-x:auto"> <table width="100%" style="border-collapse:collapse; margin-bottom:20px; margin-top:20px; word-break:break-word; border:1px solid rgb(187,187,187)"> <tbody> <tr> <th style="padding:10px 8px; color:rgb(99,99,99); border:1px solid rgb(187,187,187); font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; background-color:rgb(237,237,237)"> <span style="font-size:18px">表达式</span></th> <th style="padding:10px 8px; color:rgb(99,99,99); border:1px solid rgb(187,187,187); font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; background-color:rgb(237,237,237)"> <span style="font-size:18px">引用</span></th> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><span style="font-size:18px">book[last()]</span></tt></p> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点的最后一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-34" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_2ae336be-d33c-42fd-87d2-b5e7d9f9777d" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book/author[last()] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点的每个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的最后一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 子级。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-35" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_6dbcf014-32ba-4502-ab42-f97c1ae1aa03" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">(book/author)[last()] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文节点的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的整个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 子级元素集中的最后一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-36" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_fbdbd994-7be7-43fb-958d-bcf1050f1faa" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[excerpt] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><excerpt></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-37" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_76b862dc-7d24-4849-84fc-87cce9216ecd" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[excerpt]/title </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">属于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素(也至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><excerpt></tt> 元素子级)的子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><title></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-38" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_4547eaae-2113-42c7-98ed-acbe0b35ff31" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[excerpt]/author[degree] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素子级并且属于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素(也至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><excerpt></tt> 元素)子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-39" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_96f14052-80fb-40db-b1a6-146948cce45b" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[author/degree] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">所有包含 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 子级的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素,该子级至少包含一个<tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 子级。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-40" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_a468f45c-50c3-4734-ab96-b590f4e6067d" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[degree][award] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素子级以及至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><award></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-41" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_08947fe6-ca6b-420c-ac42-3e7ed95efee2" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[degree and award] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素子级以及至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><award></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-42" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_d7d50edf-80f2-4422-89f0-812f2f299e21" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[(degree or award) and publication] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 或 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><award></tt> 以及至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><publication></tt>子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-43" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_2948f1e7-98f8-4a88-b5c7-fb07733d9a18" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[degree and not(publication)] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素子级并且不包含 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><publication></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-44" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_37f081c2-4fec-4a10-b746-94369defb32a" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[not(degree or award) and publication] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><publication></tt> 元素子级并且不包含 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 和<tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><award></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><span style="font-size:18px">author[last-name = "Bob"]</span></tt></p> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 元素子级的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-45" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_8f1284d6-7036-429b-b4e2-84ecfd4d35d2" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[last-name[1] = "Bob"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 子元素的值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。注意,此表达式等效于下一行中的表达式。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-46" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_fb15e450-b0a7-4c97-b74e-1a3a76b21ee1" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[last-name [position()=1]= "Bob"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">第一个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 子元素的值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-47" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_bbccc7b3-fe69-46ef-bb4b-7596b437fccd" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">degree[@from != "Harvard"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px"><tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">from</tt> 属性不等于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"Harvard"</tt> 的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-48" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_8ea8d51d-3676-4965-9686-8d5fd433451c" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[. = "Matthew Bob"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">所有值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Matthew Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-49" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_12d299cb-b124-4b9c-97bd-53c30313fa22" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[last-name = "Bob" and ../price <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">></span> 50] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">包含值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 子元素以及值大于 50 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><price></tt> 同辈元素的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-50" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_eb2ac30d-c5ab-4b7c-9422-d0e9ee5aadcc" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">book[position() <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red"><</span>= 3] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">前三本书(1、2、3)。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-51" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_5c158f9f-0a3c-4895-94dd-3a171e659909" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[not(last-name = "Bob")] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">不包含值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 子元素的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-52" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_329b1bd3-ade1-4392-9d06-3f665d246d35" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[first-name = "Bob"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">至少包含一个值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><first-name></tt> 元素的所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-53" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_eaa4b317-db3f-4f52-9e12-622fbf02503e" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[* = "Bob"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">所有包含任何值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的子元素的 author 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-54" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_c2f0d4c6-2d92-4570-b4c5-cc3917f87fc7" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">author[last-name = "Bob" and first-name = "Joe"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">所有包含值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Bob</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><last-name></tt> 子元素和值为 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">Joe</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><first-name></tt>子元素的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-55" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_c110792c-e97f-4dcf-8212-511e287af23c" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">price[@intl = "Canada"] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">上下文节点中所有 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">intl</tt> 属性等于 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"Canada"</tt> 的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><price></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-56" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_ee0b9a90-add3-4156-a917-aca87285932e" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">degree[position() <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red"><</span> 3] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">属于上下文节点子级的前两个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><degree></tt> 元素。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-57" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_b6b1db81-7489-472e-9bfa-7da44b6bd4b5" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">p/text()[2] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">上下文节点中每个 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><p></tt> 元素的第二个文本节点。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-58" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_f8665c69-cb7c-4971-832f-d5db0a73449d" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">ancestor::book[1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">与上下文节点最接近的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 上级。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-59" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_c0a59231-b9d2-4774-8daa-e99b86351a9a" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">ancestor::book[author][1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">与上下文节点最接近的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 上级,并且此 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素包含<tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素子级。</span></p> </td> </tr> <tr> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <div id="code-snippet-60" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_28de3c69-3430-40c9-b44b-ed59150c2f37" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px; color:black"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px">ancestor::author[parent::book][1] </span></pre> </div> </div> </div> </div> </td> <td style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; padding:10px 8px; color:rgb(42,42,42); vertical-align:top; min-width:80px; border:1px solid rgb(187,187,187)"> <p style="margin-top:0px; margin-bottom:0px; padding-bottom:0px; line-height:18px"> <span style="font-size:18px">当前上下文中最接近的 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 上级,并且此 <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><author></tt> 元素是<tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><book></tt> 元素的子级。</span></p> </td> </tr> </tbody> </table> </div> </div> </div> <div style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; line-height:17.55px"> <h2 class="LW_CollapsibleArea_TitleDiv" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-weight:normal; margin:0px; padding-bottom:5px; padding-top:20px; line-height:1.3em"> <div style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span class="LW_CollapsibleArea_Title" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; display:inline-block; line-height:1.3em"><span style="font-size:18px">联合 ( | ) 示例</span></span> <div id="Anchor_0" class="LW_CollapsibleArea_Anchor_Div" style="visibility:hidden; width:20px; height:20px; float:right; padding-top:7px"> <span style="font-size:18px"></span> </div> <div class="LW_CollapsibleArea_HrDiv" style="padding-top:0px"></div> </div> </h2> <div class="sectionblock" style="padding-left:15px; padding-bottom:20px"> <span style="font-size:18px"></span> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <span style="font-size:18px">为了演示 union 运算,我们使用以下 XPath 表达式:</span></p> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><span style="font-size:18px">x | y/x</span></tt></p> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <span style="font-size:18px">在以下 XML 文件中选择所有值为 green 或 blue 的 <x> 元素:</span></p> <h3 class="subHeading" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-weight:normal; margin:0px; padding-bottom:5px; padding-top:5px"> <span style="font-size:18px">XML 文件 (data1.xml)</span></h3> <div class="subSection"> <div id="code-snippet-61" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_6511d472-fe11-497b-86f2-fc8d2f5b25f1" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px"><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><?</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xml</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">version</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">'</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">1.0</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">'</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">?></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><?</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xml-stylesheet</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:gray"> type="text/xsl" href="union.xsl"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">?></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">root</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>green<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>blue<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>blue<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">y</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">z</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>red<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>red<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">z</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>green<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">root</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> </span></pre> </div> </div> </div> </div> </div> <h3 class="subHeading" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-weight:normal; margin:0px; padding-bottom:5px; padding-top:5px"> <span style="font-size:18px">XSLT 文件 (union.xsl)</span></h3> <div class="subSection"> <div id="code-snippet-62" class="codeSnippetContainer" style="min-width:0px; clear:both"> <div class="codeSnippetContainerTabs" style="vertical-align:middle; height:23px; position:relative; z-index:1"> <div class="codeSnippetContainerTabSingle" style="line-height:17px; height:23px; float:left; width:auto; vertical-align:baseline; color:rgb(112,112,112); position:relative; border-width:1px; border-style:solid; border-color:rgb(147,147,147) rgb(147,147,147) rgb(255,255,255); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"> <span style="font-size:18px">XML</span> </div> </div> <div class="codeSnippetContainerCodeContainer" style="border:1px solid rgb(147,147,147); clear:both; margin-bottom:12px; position:relative; top:-1px"> <div class="codeSnippetToolBar" style="width:auto; height:auto"> <div class="codeSnippetToolBarText" style="float:right; top:-8px; position:relative; width:auto; padding-left:0px; padding-right:0px; height:0px; vertical-align:top"> </div> </div> <div id="CodeSnippetContainerCode_f2f54bab-1337-4648-a3de-816f16375328" class="codeSnippetContainerCode" style="width:auto; margin:0px; padding:10px 21px"> <div style="padding:0px; margin:0px"> <pre style="padding:5px; margin-top:0px; margin-bottom:0px; overflow:auto; word-wrap:normal; font-family:Consolas,Courier,monospace!important"><span style="font-size:18px"><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><?</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xml</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">version</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">'</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">1.0</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">'</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">?></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">stylesheet</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">version</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">1.0</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">xmlns:xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">http://www.w3.org/1999/XSL/Transform</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">template</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">match</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">root</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">for-each</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">select</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">x | y/x</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">value-of</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">select</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">.</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">/></span>, <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"><</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">if</span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:red">test</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">=</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">not(position()=last())</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important">"</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span>,<span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">if</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">for-each</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">template</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> <span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue"></</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">xsl</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">:</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:rgb(163,21,21)">stylesheet</span><span style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important; color:blue">></span> </span></pre> </div> </div> </div> </div> <h4 class="subHeading" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-weight:normal; margin:0px"> <span style="font-size:18px">格式化输出</span></h4> <div class="subSection"> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <span style="font-size:18px">green,blue,blue,green</span></p> </div> <h4 class="subHeading" style="font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-weight:normal; margin:0px"> <span style="font-size:18px">处理器输出</span></h4> <div class="subSection"> <p style="color:rgb(42,42,42); margin-top:0px; margin-bottom:0px; padding-bottom:15px; line-height:18px"> <tt style="font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif!important"><span style="font-size:18px"><?xml version="1.0" </span><span style="font-size:13px">encoding="UTF-16"?>green,blue,blue,green</span></tt></p> </div> </div> </div> </div> <br> </div> </div> </div> </div> </div> <!--PC和WAP自适应版--> <div id="SOHUCS" sid="1282589402287063040"></div> <script type="text/javascript" src="/views/front/js/chanyan.js"></script> <!-- 文章页-底部 动态广告位 --> <div class="youdao-fixed-ad" id="detail_ad_bottom"></div> </div> <div class="col-md-3"> <div class="row" id="ad"> <!-- 文章页-右侧1 动态广告位 --> <div id="right-1" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_1"> </div> </div> <!-- 文章页-右侧2 动态广告位 --> <div id="right-2" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_2"></div> </div> <!-- 文章页-右侧3 动态广告位 --> <div id="right-3" class="col-lg-12 col-md-12 col-sm-4 col-xs-4 ad"> <div class="youdao-fixed-ad" id="detail_ad_3"></div> </div> </div> </div> </div> </div> </div> <div class="container"> <h4 class="pt20 mb15 mt0 border-top">你可能感兴趣的:(python爬虫入门)</h4> <div id="paradigm-article-related"> <div class="recommend-post mb30"> <ul class="widget-links"> <li><a href="/article/1948751832398491648.htm" title="Python爬虫入门:手把手教你抓取新闻资讯网站" target="_blank">Python爬虫入门:手把手教你抓取新闻资讯网站</a> <span class="text-muted">vvbgcc</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a> <div>一、准备工作安装Python:确保你的电脑上安装了Python,建议使用Python3.x版本。可以在Python官方网站下载并安装。安装必要的库:使用pip安装以下库:pipinstallrequestsbeautifulsoup4​二、了解目标网站选择一个新闻资讯网站,例如一个简单的新闻页面(如“https://news.ycombinator.com/”),我们将从中提取新闻标题和链接。三、</div> </li> <li><a href="/article/1948153258258264064.htm" title="python爬虫入门:批量下载图片" target="_blank">python爬虫入门:批量下载图片</a> <span class="text-muted">有盐、在见</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>引言:爬虫也被称为网络蜘蛛(Spider),是一种自动化的软件程序,能够在互联网上漫游,按照一定的规则和算法抓取数据。爬虫技术广泛应用于搜索引擎、数据挖掘、信息提取等领域,是互联网技术的重要组成部分。摘要:很多初学者对于一个这样新奇的事务当然愿意去探索,我也一样,突然想要学一点关于python爬虫的知识,说干就干!那就学!如果以下说的有错误,及时指出,定会修改。本文将介绍如何从图片网站批量下载图片</div> </li> <li><a href="/article/1948033750512234496.htm" title="Python爬虫入门到实战(3)-对网页进行操作" target="_blank">Python爬虫入门到实战(3)-对网页进行操作</a> <span class="text-muted">荼蘼</span> <a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a> <div>一.获取和操作网页元素1.获取网页中的指定元素tag_name()方法:获取元素名称。text()方法:获取元素文本内容。click()方法():点击此元素。submit()方法():提交表单。send_keys()方法:模拟输入信息。size()方法:获取元素的尺寸可进入selenium库文件夹下的webdriver\remote\webelement.py中查看更多的操作方法,2.在元素中输入</div> </li> <li><a href="/article/1947033807513251840.htm" title="python爬虫入门(小白五分钟从入门到精通)" target="_blank">python爬虫入门(小白五分钟从入门到精通)</a> <span class="text-muted">一百天成为python专家</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E7%BD%91%E7%BB%9C%E7%88%AC%E8%99%AB/1.htm">网络爬虫</a><a class="tag" taget="_blank" href="/search/python3.11/1.htm">python3.11</a><a class="tag" taget="_blank" href="/search/ipython/1.htm">ipython</a> <div>网络爬虫的介绍本节主要介绍Pytbon语言中支持网络爬虫的库,此外还将介绍如何获取网站的爬取规则,读者在学习和践过程中一定要严格遵守网站提供的爬取规则。网络爬虫网络爬虫通俗来讲就是使用代码将HTML网页的内容下载到本地的过程。爬取网页主要是为了获取网中的关键信息,例如网页中的数据、图片、视频等。Python语言中提供了多个具有爬虫功能的库,下面将具urHIib库:是Python自带的标准库,无须下</div> </li> <li><a href="/article/1946842045721145344.htm" title="python爬虫技术——基础知识、实战" target="_blank">python爬虫技术——基础知识、实战</a> <span class="text-muted">南瓜AI</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/scrapy/1.htm">scrapy</a> <div>参考文献:Python爬虫入门(一)(适合初学者)-CSDN博客一、常用爬虫工具包Scrapy语言:Python特点:高效、灵活的爬虫框架,适合大型爬虫项目。BeautifulSoup语言:Python特点:用于解析HTML和XML,简单易用。Selenium语言:Python/Java/C#特点:支持浏览器自动化,适合处理JavaScript渲染的网页。Requests语言:Python特点:简</div> </li> <li><a href="/article/1941782273586163712.htm" title="Python 爬虫入门(九):Scrapy安装及使用「详细介绍」" target="_blank">Python 爬虫入门(九):Scrapy安装及使用「详细介绍」</a> <span class="text-muted">blues_C</span> <a class="tag" taget="_blank" href="/search/Python%E7%88%AC%E8%99%AB%E5%AE%9E%E6%88%98/1.htm">Python爬虫实战</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/scrapy/1.htm">scrapy</a> <div>Python爬虫入门(九):Scrapy安装及使用「详细介绍」前言1.Scrapy简介2.Scrapy的安装2.1环境准备2.2安装Scrapy3.创建Scrapy项目3.1创建项目3.2项目结构简介4.编写爬虫4.1创建爬虫4.2解析数据4.3运行爬虫5.存储数据5.1存储为JSON文件5.2存储到数据库5.2.1MongoDB6.处理请求和响应6.1请求头设置6.2处理响应7.高级功能7.1使</div> </li> <li><a href="/article/1938539680094023680.htm" title="python教学爬虫入门" target="_blank">python教学爬虫入门</a> <span class="text-muted">早柚不用工作了</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a> <div>Python爬虫入门教程:从零基础到抓取数据一、什么是网络爬虫?网络爬虫(WebCrawler),也称为网络蜘蛛(WebSpider),是一种按照一定的规则,自动抓取万维网信息的程序或者脚本。它能够模拟人类在浏览器中的操作,自动访问网页,提取所需的数据,广泛应用于数据采集、搜索引擎优化、市场调研等领域。但在编写爬虫时,务必遵守法律法规和网站的robots.txt协议,避免过度抓取对网站造成负担,同</div> </li> <li><a href="/article/1938516483164401664.htm" title="Python爬虫——入门爬取网页数据" target="_blank">Python爬虫——入门爬取网页数据</a> <span class="text-muted">AI大模型学习</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E6%9C%8D%E5%8A%A1%E5%99%A8/1.htm">服务器</a><a class="tag" taget="_blank" href="/search/1024%E7%A8%8B%E5%BA%8F%E5%91%98%E8%8A%82/1.htm">1024程序员节</a><a class="tag" taget="_blank" href="/search/linux/1.htm">linux</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB%E6%BA%90%E7%A0%81/1.htm">爬虫源码</a> <div>本文介绍Python爬虫入门教程,主要讲解如何使用Python爬取网页数据,包括基本的网页数据抓取、使用代理IP和反爬虫技术。一、Python爬虫入门Python是一门非常适合爬虫的编程语言。它具有简单易学、代码可读性高等优点,而且Python爬虫库非常丰富,使用Python进行爬虫开发非常方便。我们先来看一个简单的Python爬虫程序,爬取一个网页的标题:python复制代码importrequ</div> </li> <li><a href="/article/1934543576662863872.htm" title="Python爬虫入门:7个实用案例带你从零开始(附完整源码)" target="_blank">Python爬虫入门:7个实用案例带你从零开始(附完整源码)</a> <span class="text-muted"></span> <div>包含编程籽料、学习路线图、爬虫代码、安装包等!【点击领取】作为数据采集的利器,Python爬虫技术越来越受到开发者关注。本文将带你从零开始学习Python爬虫,通过7个由浅入深的实战案例,掌握requests、BeautifulSoup、Scrapy等核心库的使用技巧。一、爬虫基础准备在开始前,请确保已安装以下库:pipinstallrequestsbeautifulsoup4lxmlseleni</div> </li> <li><a href="/article/1929528726098341888.htm" title="用 Python 写你的第一个爬虫:小白也能轻松搞定数据抓取(超详细包含最新所有Python爬虫库的教程)" target="_blank">用 Python 写你的第一个爬虫:小白也能轻松搞定数据抓取(超详细包含最新所有Python爬虫库的教程)</a> <span class="text-muted">猫头虎</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/opencv/1.htm">opencv</a><a class="tag" taget="_blank" href="/search/scipy/1.htm">scipy</a><a class="tag" taget="_blank" href="/search/scrapy/1.htm">scrapy</a><a class="tag" taget="_blank" href="/search/beautifulsoup/1.htm">beautifulsoup</a><a class="tag" taget="_blank" href="/search/numpy/1.htm">numpy</a> <div>用Python写你的第一个爬虫:小白也能轻松搞定数据抓取(超详细包含最新所有Python爬虫库的教程)摘要本文是一篇面向爬虫爱好者的超详细Python爬虫入门教程,涵盖了从基础到进阶的所有关键技术点:使用Requests与BeautifulSoup实现静态网页数据抓取,运用lxml、XPath、CSS选择器等高效解析技术,深入Scrapy框架搭建分布式爬虫项目,掌握Selenium和Playwri</div> </li> <li><a href="/article/1928964522853330944.htm" title="Python爬虫入门" target="_blank">Python爬虫入门</a> <span class="text-muted">苏九黎</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>爬虫学习爬虫的简介爬虫,又称为网络蜘蛛,即爬虫网页中的内容,通俗的来将就是将网页中的数据提取处理,并且保存到本地,来进行后续的操作。爬虫,遵循所见即所爬原则,也就是说只能爬取到看的见的数据,看不见的数据就无法提取了。爬虫,要在合法的范围内进行爬取,切记,有关国家政府等机关的网站,碰都不要碰下。爬虫流程1.确定url2.发送请求,获取响应3.提取响应4.保存数据,进行后续操作爬虫爬取的是响应,也就是</div> </li> <li><a href="/article/1927441449645830144.htm" title="Python 爬虫入门:爬取网易云音乐热歌榜歌曲" target="_blank">Python 爬虫入门:爬取网易云音乐热歌榜歌曲</a> <span class="text-muted">qq_58092714</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>Python爬虫入门:爬取网易云音乐热歌榜歌曲教学目标:理解网络爬虫基本原理掌握requests库的HTTP请求方法学会使用BeautifulSoup解析HTML页面实现文件下载与目录管理了解反爬机制与应对策略第一小时:环境搭建与基础库使用1.开发环境准备(15分钟)知识点:Python解释器安装(推荐官网下载3.8+版本)pip包管理工具的使用第三方库安装:pipinstallrequestsb</div> </li> <li><a href="/article/1926831907266424832.htm" title="Python爬虫入门指南:三步搞定网页数据抓取(附实战案例)[特殊字符]" target="_blank">Python爬虫入门指南:三步搞定网页数据抓取(附实战案例)[特殊字符]</a> <span class="text-muted">别问!问就是全会</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E5%85%B6%E4%BB%96/1.htm">其他</a> <div>文章目录一、爬虫到底是什么鬼?️必须知道的三个潜规则(必看):二、准备工作(5分钟搞定)1.安装必备武器库2.创建你的第一个爬虫文件三、实战:抓取豆瓣电影Top250步骤1:获取网页内容(requests大法好!)步骤2:解析数据(BeautifulSoup就是美!)步骤3:存储数据(先存本地试试)四、常见问题急救包1.遇到403Forbidden怎么办?2.数据乱码怎么破?3.动态加载数据抓不到</div> </li> <li><a href="/article/1926670801738723328.htm" title="Python爬虫入门" target="_blank">Python爬虫入门</a> <span class="text-muted">清风徐来QCQ</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>爬虫需要用到HTTP请求的库、HTML/XML解析的库、用于处理动态内容的库等如request,lxml首先通过get请求url,包括头信息和关键字导入头文件importrequests头信息是为了伪装成用户取访问该urlheaders={'user-agent':'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeG</div> </li> <li><a href="/article/1923332638035210240.htm" title="python爬虫入门(所有演示代码,均有逐行分析!)" target="_blank">python爬虫入门(所有演示代码,均有逐行分析!)</a> <span class="text-muted">阿勉要睡觉(考试版)</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>目录1.爬虫简介2.版本及库的要求3.爬虫的框架4.HTML简介5.爬虫库及演示(1)requests库(网页下载器)(2)BeautifulSoup库(网页解析器)6.爬虫框架补充(1)URL管理模块7.对目标网站进行解析8.举个栗子(1)所需库(2)爬取目标(3)网页分析(4)编写爬虫前的准备(5)编写代码9.参考资料1.爬虫简介网络爬虫,也称为网页蜘蛛或网络机器人,是一种自动抓取万维网信息的</div> </li> <li><a href="/article/1922527768956956672.htm" title="互联网大厂Java求职面试实战:Spring Boot与微服务场景深度解析" target="_blank">互联网大厂Java求职面试实战:Spring Boot与微服务场景深度解析</a> <span class="text-muted">码农飞哥</span> <a class="tag" taget="_blank" href="/search/Java%E5%9C%BA%E6%99%AF%E9%9D%A2%E8%AF%95%E5%AE%9D%E5%85%B8/1.htm">Java场景面试宝典</a><a class="tag" taget="_blank" href="/search/Java/1.htm">Java</a><a class="tag" taget="_blank" href="/search/Spring/1.htm">Spring</a><a class="tag" taget="_blank" href="/search/Boot/1.htm">Boot</a><a class="tag" taget="_blank" href="/search/%E5%BE%AE%E6%9C%8D%E5%8A%A1/1.htm">微服务</a><a class="tag" taget="_blank" href="/search/%E4%BA%92%E8%81%94%E7%BD%91%E5%8C%BB%E7%96%97/1.htm">互联网医疗</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%BA%93/1.htm">数据库</a><a class="tag" taget="_blank" href="/search/%E5%AE%89%E5%85%A8/1.htm">安全</a><a class="tag" taget="_blank" href="/search/%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97/1.htm">消息队列</a> <div>1.Python基础专栏,基础知识一网打尽,9.9元买不了吃亏,买不了上当。Python从入门到精通2.毕业设计专栏,毕业季咱们不慌忙,几百款毕业设计等你选。❤️3.Python爬虫专栏,系统性的学习爬虫的知识点。9.9元买不了吃亏,买不了上当。python爬虫入门进阶❤️4.Ceph实战,从原理到实战应有尽有。Ceph实战❤️5.Java高并发编程入门,打卡学习Java高并发。Java高并发编程</div> </li> <li><a href="/article/1921042801169068032.htm" title="Python 爬虫入门(十一):Scrapy高级应用之并发与分布式「详细介绍」" target="_blank">Python 爬虫入门(十一):Scrapy高级应用之并发与分布式「详细介绍」</a> <span class="text-muted">blues_C</span> <a class="tag" taget="_blank" href="/search/Python%E7%88%AC%E8%99%AB%E5%AE%9E%E6%88%98/1.htm">Python爬虫实战</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/scrapy/1.htm">scrapy</a> <div>Python爬虫入门(十一):Scrapy高级应用之并发与分布式「详细介绍」前言1.并发爬取1.1并发爬取的基本概念1.2Scrapy中的并发配置1.3示例项目:抓取JSONPlaceholder的数据2.分布式爬取2.1分布式爬取的基本概念2.2Scrapy-Redis的安装与配置2.3修改爬虫实现分布式爬取3.并发与分布式爬取的最佳实践3.1优化并发性能3.2分布式爬取中的常见问题3.3监控和</div> </li> <li><a href="/article/1916759440275599360.htm" title="2024-2025年计算机软件毕业设计选题大全:2000个精品选题推荐✅" target="_blank">2024-2025年计算机软件毕业设计选题大全:2000个精品选题推荐✅</a> <span class="text-muted">毕业设计课程设计</span> <a class="tag" taget="_blank" href="/search/%E6%AF%95%E4%B8%9A%E8%AE%BE%E8%AE%A1/1.htm">毕业设计</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/%E6%AF%95%E4%B8%9A%E8%AE%BE%E8%AE%A1/1.htm">毕业设计</a><a class="tag" taget="_blank" href="/search/%E6%AF%95%E8%AE%BE/1.htm">毕设</a><a class="tag" taget="_blank" href="/search/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/1.htm">计算机网络</a><a class="tag" taget="_blank" href="/search/springboot/1.htm">springboot</a> <div>1.Python基础专栏,基础知识一网打尽,9.9元买不了吃亏,买不了上当。Python从入门到精通2.毕业设计专栏,毕业季咱们不慌忙,几千款毕业设计等你选。❤️3.Python爬虫专栏,系统性的学习爬虫的知识点。9.9元买不了吃亏,买不了上当。python爬虫入门进阶❤️4.Ceph实战,从原理到实战应有尽有。Ceph实战❤️5.Java高并发编程入门,打卡学习Java高并发。Java高并发编程</div> </li> <li><a href="/article/1916170529912451072.htm" title="python爬虫入门" target="_blank">python爬虫入门</a> <span class="text-muted">z10_14</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>一、首先需要了解爬虫的原理爬虫就是一个自动化数据采集工作,你只需要告诉它需要采取哪些数据,给它一个url,就可以自动的抓取数据。其背后的基本原理就是爬虫模拟浏览器向目标服务器发送http请求,然后目标服务器返回响应结果,爬虫客户端收到响应并从中提取数据,再进行数据清洗、数据存储工作。二、爬虫的基本流程爬虫的基本流程与访问浏览器类似,就是建立一个http请求,当用户输入一个url之后,点击确认,客户</div> </li> <li><a href="/article/1914449531924180992.htm" title="Python爬虫入门指南:从零开始抓取数据" target="_blank">Python爬虫入门指南:从零开始抓取数据</a> <span class="text-muted">云端.代码农夫CloudFarmer</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90/1.htm">数据分析</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E4%BF%A1%E6%81%AF%E5%8F%AF%E8%A7%86%E5%8C%96/1.htm">信息可视化</a><a class="tag" taget="_blank" href="/search/excel/1.htm">excel</a> <div>Python爬虫入门指南:从零开始抓取数据引言在大数据时代,数据是新的石油。而爬虫作为获取数据的重要手段,受到了越来越多的关注。Python作为一门强大的编程语言,其简洁易用的特性使得它成为爬虫开发的首选语言。本篇文章将带你从零开始,逐步掌握Python爬虫的基本知识和实战技巧。什么是爬虫?爬虫,全称网络爬虫(WebSpider),是一种按照一定规则自动抓取万维网信息的程序或者脚本。它模拟人类在浏</div> </li> <li><a href="/article/1912858663538716672.htm" title="Python爬虫从入门到实战:8天精通数据抓取技巧" target="_blank">Python爬虫从入门到实战:8天精通数据抓取技巧</a> <span class="text-muted">七七知享</span> <a class="tag" taget="_blank" href="/search/Python/1.htm">Python</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a><a class="tag" taget="_blank" href="/search/%E7%BD%91%E7%BB%9C%E7%88%AC%E8%99%AB/1.htm">网络爬虫</a><a class="tag" taget="_blank" href="/search/%E7%A8%8B%E5%BA%8F%E4%BA%BA%E7%94%9F/1.htm">程序人生</a><a class="tag" taget="_blank" href="/search/%E7%A8%8B%E5%BA%8F%E5%91%98/1.htm">程序员</a><a class="tag" taget="_blank" href="/search/%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/1.htm">编程语言</a> <div>重要的东西放在前面咯Python爬虫入门到实战Python爬虫从入门到实战:8天精通数据抓取技巧在大数据时代,从互联网海量信息中获取有价值的数据,对于许多领域的工作至关重要。Python凭借其丰富的库和简洁的语法,成为爬虫开发的首选语言。如果你渴望在短时间内掌握Python爬虫技术,实现从网页抓取各类数据,这份精心设计的8天速成攻略将带你开启高效学习之旅,通过丰富的实战案例,让你迅速上手,成长为爬</div> </li> <li><a href="/article/1908829121442541568.htm" title="Python爬虫入门教程:从零开始抓取网页数据(超详细版)" target="_blank">Python爬虫入门教程:从零开始抓取网页数据(超详细版)</a> <span class="text-muted">记得晚安静静</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>嘿!欢迎来到这篇超详细的Python爬虫教程!如果你对爬虫一无所知,别担心!我会用最简单的方式带你从零开始,一步步掌握爬虫的核心技能。爬虫就像一个“数据小偷”,能帮你从互联网上抓取任何公开信息,无论是新闻、商品价格,还是用户评论。听起来很酷吧?那我们就开始吧!一、Python爬虫是什么?简单来说,Python爬虫是一种自动化程序,能模拟人类浏览网页的行为,按照规则自动抓取网页上的数据。它的用途超广</div> </li> <li><a href="/article/1907386363938926592.htm" title="Python爬虫入门实例:Python7个爬虫小案例(附源码)" target="_blank">Python爬虫入门实例:Python7个爬虫小案例(附源码)</a> <span class="text-muted">m0_74823683</span> <a class="tag" taget="_blank" href="/search/%E9%9D%A2%E8%AF%95/1.htm">面试</a><a class="tag" taget="_blank" href="/search/%E5%AD%A6%E4%B9%A0%E8%B7%AF%E7%BA%BF/1.htm">学习路线</a><a class="tag" taget="_blank" href="/search/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4/1.htm">阿里巴巴</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>引言随着互联网的快速发展,数据成为了新时代的石油。Python作为一种高效、易学的编程语言,在数据采集领域有着广泛的应用。本文将详细讲解Python爬虫的原理、常用库以及实战案例,帮助读者掌握爬虫技能。一、爬虫原理爬虫,又称网络爬虫,是一种自动获取网页内容的程序。它模拟人类浏览网页的行为,发送HTTP请求,获取网页源代码,再通过解析、提取等技术手段,获取所需数据。1.HTTP请求与响应过程爬虫首先</div> </li> <li><a href="/article/1905515420253745152.htm" title="Python爬虫入门教程三:requests-html处理动态网页" target="_blank">Python爬虫入门教程三:requests-html处理动态网页</a> <span class="text-muted">NUAA丶无痕</span> <a class="tag" taget="_blank" href="/search/Python%E7%88%AC%E8%99%AB/1.htm">Python爬虫</a> <div>环境python:3.7.4python库:requests-htmlIDE:pycharm2019.3版本爬取网址:https://weibo.cn/pub/教程本次教程爬取的网页是微博移动端的界面,打开网页会显示如下图所示其中除了两个明星每次加载会不一样以外,其他网页的内容是固定的,也就是说利用xpath只能提取网页的其他内容,但是不能提取显示的明星相关的内容下面附上完整代码,但先不要复制运行</div> </li> <li><a href="/article/1901867423309557760.htm" title="Python 爬虫入门(六):urllib库的使用方法" target="_blank">Python 爬虫入门(六):urllib库的使用方法</a> <span class="text-muted">blues_C</span> <a class="tag" taget="_blank" href="/search/Python%E7%88%AC%E8%99%AB%E5%AE%9E%E6%88%98/1.htm">Python爬虫实战</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%BC%80%E5%8F%91%E8%AF%AD%E8%A8%80/1.htm">开发语言</a> <div>Python爬虫入门(六):urllib库的使用方法前言1.urllib概述2.urllib.request模块2.1发送GET请求2.2发送POST请求2.3添加headers2.4处理异常3.urllib.error模块4.urllib.parse模块4.1URL解析4.2URL编码和解码4.3拼接URL5.urllib.robotparser模块6.实战示例:爬取豆瓣电影Top2507.ur</div> </li> <li><a href="/article/1897661526437851136.htm" title="Python:分享一个Python爬虫入门实例(有源码,学习使用)" target="_blank">Python:分享一个Python爬虫入门实例(有源码,学习使用)</a> <span class="text-muted">衍生星球</span> <a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/%E5%AD%A6%E4%B9%A0/1.htm">学习</a><a class="tag" taget="_blank" href="/search/pyecharts/1.htm">pyecharts</a> <div>一、爬虫基础知识Python爬虫是一种使用Python编程语言实现的自动化获取网页数据的技术。它广泛应用于数据采集、数据分析、网络监测等领域。以下是对Python爬虫的详细介绍:架构和组成:下载器:负责根据指定的URL下载网页内容,常用的库有Requests和urllib。解析器:用于解析下载的网页内容,提取所需的数据。BeautifulSoup和lxml是常用的解析库。存储器:将提取的数据存储到</div> </li> <li><a href="/article/1894717459701755904.htm" title="python模拟app操作_Python爬虫入门教程 49-100 Appium安装+操作51JOB_APP(模拟手机操作之一)手机APP爬虫-阿里云开发者社区..." target="_blank">python模拟app操作_Python爬虫入门教程 49-100 Appium安装+操作51JOB_APP(模拟手机操作之一)手机APP爬虫-阿里云开发者社区...</a> <span class="text-muted">weixin_39892019</span> <a class="tag" taget="_blank" href="/search/python%E6%A8%A1%E6%8B%9Fapp%E6%93%8D%E4%BD%9C/1.htm">python模拟app操作</a> <div>爬前准备工作在开始安装Appium之前,你要先知道Appium是做什么的?Appium是一个自动化测试开源工具,看到没,做测试用的,它有点类似Selenium,可以自动操作APP实现一系列的操作。标记重点,可以使用python对Appium编写脚本,实现对App的抓取。今天就给你写一个100%叫你可以运行起来的入门实例。下载地址下载之后,双击exe安装即可出现如下界面,表示安装成功,先不要进行其他</div> </li> <li><a href="/article/1888959634253869056.htm" title="Python爬虫入门教程24:下载某网站付费文档保存PDF(1)" target="_blank">Python爬虫入门教程24:下载某网站付费文档保存PDF(1)</a> <span class="text-muted">好像要长脑子了1</span> <a class="tag" taget="_blank" href="/search/%E7%A8%8B%E5%BA%8F%E5%91%98/1.htm">程序员</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/pdf/1.htm">pdf</a> <div>Python爬虫入门教程10:彼岸壁纸爬取Python爬虫入门教程11:新版王者荣耀皮肤图片的爬取Python爬虫入门教程12:英雄联盟皮肤图片的爬取Python爬虫入门教程13:高质量电脑桌面壁纸爬取Python爬虫入门教程14:有声书音频爬取Python爬虫入门教程15:音乐网站数据的爬取Python爬虫入门教程17:音乐歌曲的爬取Python爬虫入门教程18:好看视频的爬取Python爬取入</div> </li> <li><a href="/article/1887441584505548800.htm" title="Python爬虫入门实战2:获取CSDN个人博客文章基础信息" target="_blank">Python爬虫入门实战2:获取CSDN个人博客文章基础信息</a> <span class="text-muted">LaoYuanPython</span> <a class="tag" taget="_blank" href="/search/Python%E7%88%AC%E8%99%AB%E5%85%A5%E9%97%A8/1.htm">Python爬虫入门</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/CSDN/1.htm">CSDN</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a><a class="tag" taget="_blank" href="/search/BeatifulSoap/1.htm">BeatifulSoap</a><a class="tag" taget="_blank" href="/search/HTML/1.htm">HTML</a> <div>☞░老猿Python博文目录:https://blog.csdn.net/LaoYuanPython/article/details/98245036░一、引言当爬取博文内容时,有时需要进行些基础信息分析采取不同的处理措施,例如根据博文的点赞数和评论数分析是否热门博文,本节介绍爬取CSDN的博文后分析博文的基础信息,包括文章标题、内容、博主名、阅读数量、收藏数量、点赞数量、评论数量、文章长度、是否</div> </li> <li><a href="/article/1886515216104091648.htm" title="手机Python爬虫教程:利用手机学习Python爬虫的终极指南" target="_blank">手机Python爬虫教程:利用手机学习Python爬虫的终极指南</a> <span class="text-muted">一只会写程序的猫</span> <a class="tag" taget="_blank" href="/search/Python/1.htm">Python</a><a class="tag" taget="_blank" href="/search/%E6%99%BA%E8%83%BD%E6%89%8B%E6%9C%BA/1.htm">智能手机</a><a class="tag" taget="_blank" href="/search/python/1.htm">python</a><a class="tag" taget="_blank" href="/search/%E7%88%AC%E8%99%AB/1.htm">爬虫</a> <div>【引言】在数字化时代,手机已经成为人们生活中不可或缺的一部分。而Python爬虫作为一种强大的数据获取工具,也受到越来越多人的关注。但是,是否可以利用手机进行Python爬虫学习呢?本文将介绍如何通过手机学习Python爬虫,为你打开一扇全新的学习之门。【一、手机学习资源】1.《Python爬虫入门教程》(手机应用)这款手机应用程序提供了Python爬虫的基础知识和实例讲解,适合初学者使用。你可以</div> </li> <li><a href="/article/14.htm" title="Spring4.1新特性——综述" target="_blank">Spring4.1新特性——综述</a> <span class="text-muted">jinnianshilongnian</span> <a class="tag" taget="_blank" href="/search/spring+4.1/1.htm">spring 4.1</a> <div>目录 Spring4.1新特性——综述 Spring4.1新特性——Spring核心部分及其他 Spring4.1新特性——Spring缓存框架增强 Spring4.1新特性——异步调用和事件机制的异常处理 Spring4.1新特性——数据库集成测试脚本初始化 Spring4.1新特性——Spring MVC增强 Spring4.1新特性——页面自动化测试框架Spring MVC T</div> </li> <li><a href="/article/141.htm" title="Schema与数据类型优化" target="_blank">Schema与数据类型优化</a> <span class="text-muted">annan211</span> <a class="tag" taget="_blank" href="/search/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/1.htm">数据结构</a><a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div> 目前商城的数据库设计真是一塌糊涂,表堆叠让人不忍直视,无脑的架构师,说了也不听。 在数据库设计之初,就应该仔细揣摩可能会有哪些查询,有没有更复杂的查询,而不是仅仅突出 很表面的业务需求,这样做会让你的数据库性能成倍提高,当然,丑陋的架构师是不会这样去考虑问题的。 选择优化的数据类型 1 更小的通常更好 更小的数据类型通常更快,因为他们占用更少的磁盘、内存和cpu缓存,</div> </li> <li><a href="/article/268.htm" title="第一节 HTML概要学习" target="_blank">第一节 HTML概要学习</a> <span class="text-muted">chenke</span> <a class="tag" taget="_blank" href="/search/html/1.htm">html</a><a class="tag" taget="_blank" href="/search/Web/1.htm">Web</a><a class="tag" taget="_blank" href="/search/css/1.htm">css</a> <div>第一节 HTML概要学习 1. 什么是HTML HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,它规定了自己的语法规则,用来表示比“文本”更丰富的意义,比如图片,表格,链接等。浏览器(IE,FireFox等)软件知道HTML语言的语法,可以用来查看HTML文档。目前互联网上的绝大部分网页都是使用HTML编写的。 打开记事本 输入一下内</div> </li> <li><a href="/article/395.htm" title="MyEclipse里部分习惯的更改" target="_blank">MyEclipse里部分习惯的更改</a> <span class="text-muted">Array_06</span> <a class="tag" taget="_blank" href="/search/eclipse/1.htm">eclipse</a> <div>继续补充中---------------------- 1.更改自己合适快捷键windows-->prefences-->java-->editor-->Content Assist-->      Activation triggers for java的右侧“.”就可以改变常用的快捷键 选中 Text </div> </li> <li><a href="/article/522.htm" title="近一个月的面试总结" target="_blank">近一个月的面试总结</a> <span class="text-muted">cugfy</span> <a class="tag" taget="_blank" href="/search/%E9%9D%A2%E8%AF%95/1.htm">面试</a> <div>本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/46753275 前言       打算换个工作,近一个月面试了不少的公司,下面将一些面试经验和思考分享给大家。另外校招也快要开始了,为在校的学生提供一些经验供参考,希望都能找到满意的工作。 </div> </li> <li><a href="/article/649.htm" title="HTML5一个小迷宫游戏" target="_blank">HTML5一个小迷宫游戏</a> <span class="text-muted">357029540</span> <a class="tag" taget="_blank" href="/search/html5/1.htm">html5</a> <div>     通过《HTML5游戏开发》摘抄了一个小迷宫游戏,感觉还不错,可以画画,写字,把摘抄的代码放上来分享下,喜欢的同学可以拿来玩玩! <html> <head> <title>创建运行迷宫</title> <script type="text/javascript"</div> </li> <li><a href="/article/776.htm" title="10步教你上传githib数据" target="_blank">10步教你上传githib数据</a> <span class="text-muted">张亚雄</span> <a class="tag" taget="_blank" href="/search/git/1.htm">git</a> <div>官方的教学还有其他博客里教的都是给懂的人说得,对已我们这样对我大菜鸟只能这么来锻炼,下面先不玩什么深奥的,先暂时用着10步干净利索。等玩顺溜了再用其他的方法。 操作过程(查看本目录下有哪些文件NO.1)ls (跳转到子目录NO.2)cd+空格+目录 (继续NO.3)ls (匹配到子目录NO.4)cd+ 目录首写字母+tab键+(首写字母“直到你所用文件根就不再按TAB键了”) (查看文件</div> </li> <li><a href="/article/903.htm" title="MongoDB常用操作命令大全" target="_blank">MongoDB常用操作命令大全</a> <span class="text-muted">adminjun</span> <a class="tag" taget="_blank" href="/search/mongodb/1.htm">mongodb</a><a class="tag" taget="_blank" href="/search/%E6%93%8D%E4%BD%9C%E5%91%BD%E4%BB%A4/1.htm">操作命令</a> <div>成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令,只是MongoDB没有创建数据库的命令,但有类似的命令 如:如果你想创建一个“myTest”的数据库,先运行use myTest命令,之后就做一些操作(如:db.createCollection('user')),这样就可以创建一个名叫“myTest”的数据库。 一</div> </li> <li><a href="/article/1030.htm" title="bat调用jar包并传入多个参数" target="_blank">bat调用jar包并传入多个参数</a> <span class="text-muted">aijuans</span> <div>下面的主程序是通过eclipse写的: 1.在Main函数接收bat文件传递的参数(String[] args)  如:   String ip =args[0];          String user=args[1];       &nbs</div> </li> <li><a href="/article/1157.htm" title="Java中对类的主动引用和被动引用" target="_blank">Java中对类的主动引用和被动引用</a> <span class="text-muted">ayaoxinchao</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/%E4%B8%BB%E5%8A%A8%E5%BC%95%E7%94%A8/1.htm">主动引用</a><a class="tag" taget="_blank" href="/search/%E5%AF%B9%E7%B1%BB%E7%9A%84%E5%BC%95%E7%94%A8/1.htm">对类的引用</a><a class="tag" taget="_blank" href="/search/%E8%A2%AB%E5%8A%A8%E5%BC%95%E7%94%A8/1.htm">被动引用</a><a class="tag" taget="_blank" href="/search/%E7%B1%BB%E5%88%9D%E5%A7%8B%E5%8C%96/1.htm">类初始化</a> <div>  在Java代码中,有些类看上去初始化了,但其实没有。例如定义一定长度某一类型的数组,看上去数组中所有的元素已经被初始化,实际上一个都没有。对于类的初始化,虚拟机规范严格规定了只有对该类进行主动引用时,才会触发。而除此之外的所有引用方式称之为对类的被动引用,不会触发类的初始化。虚拟机规范严格地规定了有且仅有四种情况是对类的主动引用,即必须立即对类进行初始化。四种情况如下:1.遇到ne</div> </li> <li><a href="/article/1284.htm" title="导出数据库 提示 outfile disabled" target="_blank">导出数据库 提示 outfile disabled</a> <span class="text-muted">BigBird2012</span> <a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div>在windows控制台下,登陆mysql,备份数据库:   mysql>mysqldump -u root -p test test > D:\test.sql 使用命令 mysqldump 格式如下: mysqldump -u root -p *** DBNAME > E:\\test.sql。 注意:执行该命令的时候不要进入mysql的控制台再使用,这样会报</div> </li> <li><a href="/article/1411.htm" title="Javascript 中的 && 和 ||" target="_blank">Javascript 中的 && 和 ||</a> <span class="text-muted">bijian1013</span> <a class="tag" taget="_blank" href="/search/JavaScript/1.htm">JavaScript</a><a class="tag" taget="_blank" href="/search/%26%26/1.htm">&&</a><a class="tag" taget="_blank" href="/search/%7C%7C/1.htm">||</a> <div>        准备两个对象用于下面的讨论 var alice = { name: "alice", toString: function () { return this.name; } } var smith = { name: "smith", </div> </li> <li><a href="/article/1538.htm" title="[Zookeeper学习笔记之四]Zookeeper Client Library会话重建" target="_blank">[Zookeeper学习笔记之四]Zookeeper Client Library会话重建</a> <span class="text-muted">bit1129</span> <a class="tag" taget="_blank" href="/search/zookeeper/1.htm">zookeeper</a> <div>为了说明问题,先来看个简单的示例代码:   package com.tom.zookeeper.book; import com.tom.Host; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.ZooKeeper; import org.apache.zookeeper.Wat</div> </li> <li><a href="/article/1665.htm" title="【Scala十一】Scala核心五:case模式匹配" target="_blank">【Scala十一】Scala核心五:case模式匹配</a> <span class="text-muted">bit1129</span> <a class="tag" taget="_blank" href="/search/scala/1.htm">scala</a> <div>package spark.examples.scala.grammars.caseclasses object CaseClass_Test00 { def simpleMatch(arg: Any) = arg match { case v: Int => "This is an Int" case v: (Int, String)</div> </li> <li><a href="/article/1792.htm" title="运维的一些面试题" target="_blank">运维的一些面试题</a> <span class="text-muted">yuxianhua</span> <a class="tag" taget="_blank" href="/search/linux/1.htm">linux</a> <div>1、Linux挂载Winodws共享文件夹   mount -t cifs //1.1.1.254/ok /var/tmp/share/ -o username=administrator,password=yourpass 或 mount -t cifs -o username=xxx,password=xxxx //1.1.1.1/a /win    </div> </li> <li><a href="/article/1919.htm" title="Java lang包-Boolean" target="_blank">Java lang包-Boolean</a> <span class="text-muted">BrokenDreams</span> <a class="tag" taget="_blank" href="/search/boolean/1.htm">boolean</a> <div>         Boolean类是Java中基本类型boolean的包装类。这个类比较简单,直接看源代码吧。 public final class Boolean implements java.io.Serializable, </div> </li> <li><a href="/article/2046.htm" title="读《研磨设计模式》-代码笔记-命令模式-Command" target="_blank">读《研磨设计模式》-代码笔记-命令模式-Command</a> <span class="text-muted">bylijinnan</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a><a class="tag" taget="_blank" href="/search/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/1.htm">设计模式</a> <div>声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/ import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * GOF 在《设计模式》一书中阐述命令模式的意图:“将一个请求封装</div> </li> <li><a href="/article/2173.htm" title="matlab下GPU编程笔记" target="_blank">matlab下GPU编程笔记</a> <span class="text-muted">cherishLC</span> <a class="tag" taget="_blank" href="/search/matlab/1.htm">matlab</a> <div>不多说,直接上代码 gpuDevice % 查看系统中的gpu,,其中的DeviceSupported会给出matlab支持的GPU个数。 g=gpuDevice(1); %会清空 GPU 1中的所有数据,,将GPU1 设为当前GPU reset(g) %也可以清空GPU中数据。 a=1; a=gpuArray(a); %将a从CPU移到GPU中 onGP</div> </li> <li><a href="/article/2300.htm" title="SVN安装过程" target="_blank">SVN安装过程</a> <span class="text-muted">crabdave</span> <a class="tag" taget="_blank" href="/search/SVN/1.htm">SVN</a> <div>SVN安装过程   subversion-1.6.12   ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-openssl=/</div> </li> <li><a href="/article/2427.htm" title="sql 行列转换" target="_blank">sql 行列转换</a> <span class="text-muted">daizj</span> <a class="tag" taget="_blank" href="/search/sql/1.htm">sql</a><a class="tag" taget="_blank" href="/search/%E8%A1%8C%E5%88%97%E8%BD%AC%E6%8D%A2/1.htm">行列转换</a><a class="tag" taget="_blank" href="/search/%E8%A1%8C%E8%BD%AC%E5%88%97/1.htm">行转列</a><a class="tag" taget="_blank" href="/search/%E5%88%97%E8%BD%AC%E8%A1%8C/1.htm">列转行</a> <div>行转列的思想是通过case when 来实现 列转行的思想是通过union all 来实现 下面具体例子: 假设有张学生成绩表(tb)如下: Name Subject Result 张三 语文  74 张三 数学  83 张三 物理  93 李四 语文  74 李四 数学  84 李四 物理  94 */ /* 想变成 姓名   &</div> </li> <li><a href="/article/2554.htm" title="MySQL--主从配置" target="_blank">MySQL--主从配置</a> <span class="text-muted">dcj3sjt126com</span> <a class="tag" taget="_blank" href="/search/mysql/1.htm">mysql</a> <div> linux下的mysql主从配置: 说明:由于MySQL不同版本之间的(二进制日志)binlog格式可能会不一样,因此最好的搭配组合是Master的MySQL版本和Slave的版本相同或者更低, Master的版本肯定不能高于Slave版本。(版本向下兼容) mysql1  : 192.168.100.1    //master mysq</div> </li> <li><a href="/article/2681.htm" title="关于yii 数据库添加新字段之后model类的修改" target="_blank">关于yii 数据库添加新字段之后model类的修改</a> <span class="text-muted">dcj3sjt126com</span> <a class="tag" taget="_blank" href="/search/Model/1.htm">Model</a> <div>rules: array('新字段','safe','on'=>'search') 1、array('新字段', 'safe')//这个如果是要用户输入的话,要加一下, 2、array('新字段', 'numerical'),//如果是数字的话 3、array('新字段', 'length', 'max'=>100),//如果是文本 1、2、3适当的最少要加一条,新字段才会被</div> </li> <li><a href="/article/2808.htm" title="sublime text3 中文乱码解决" target="_blank">sublime text3 中文乱码解决</a> <span class="text-muted">dyy_gusi</span> <a class="tag" taget="_blank" href="/search/Sublime+Text/1.htm">Sublime Text</a> <div>sublime text3中文乱码解决 原因:缺少转换为UTF-8的插件 目的:安装ConvertToUTF8插件包 第一步:安装能自动安装插件的插件,百度“Codecs33”,然后按照步骤可以得到以下一段代码: import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a30980927</div> </li> <li><a href="/article/2935.htm" title="概念了解:CGI,FastCGI,PHP-CGI与PHP-FPM" target="_blank">概念了解:CGI,FastCGI,PHP-CGI与PHP-FPM</a> <span class="text-muted">geeksun</span> <a class="tag" taget="_blank" href="/search/PHP/1.htm">PHP</a> <div>CGI CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。如php,perl,tcl等。 FastCGI FastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不</div> </li> <li><a href="/article/3062.htm" title="Git push 报错 "error: failed to push some refs to " 解决" target="_blank">Git push 报错 "error: failed to push some refs to " 解决</a> <span class="text-muted">hongtoushizi</span> <a class="tag" taget="_blank" href="/search/git/1.htm">git</a> <div>Git push 报错 "error: failed to push some refs to " . 此问题出现的原因是:由于远程仓库中代码版本与本地不一致冲突导致的。 由于我在第一次git pull --rebase 代码后,准备push的时候,有别人往线上又提交了代码。所以出现此问题。 解决方案: 1: git pull    2:</div> </li> <li><a href="/article/3189.htm" title="第四章 Lua模块开发" target="_blank">第四章 Lua模块开发</a> <span class="text-muted">jinnianshilongnian</span> <a class="tag" taget="_blank" href="/search/nginx/1.htm">nginx</a><a class="tag" taget="_blank" href="/search/lua/1.htm">lua</a> <div>在实际开发中,不可能把所有代码写到一个大而全的lua文件中,需要进行分模块开发;而且模块化是高性能Lua应用的关键。使用require第一次导入模块后,所有Nginx 进程全局共享模块的数据和代码,每个Worker进程需要时会得到此模块的一个副本(Copy-On-Write),即模块可以认为是每Worker进程共享而不是每Nginx Server共享;另外注意之前我们使用init_by_lua中初</div> </li> <li><a href="/article/3316.htm" title="java.lang.reflect.Proxy" target="_blank">java.lang.reflect.Proxy</a> <span class="text-muted">liyonghui160com</span> <div>  1.简介   Proxy 提供用于创建动态代理类和实例的静态方法 (1)动态代理类的属性 代理类是公共的、最终的,而不是抽象的 未指定代理类的非限定名称。但是,以字符串 "$Proxy" 开头的类名空间应该为代理类保留 代理类扩展 java.lang.reflect.Proxy 代理类会按同一顺序准确地实现其创建时指定的接口</div> </li> <li><a href="/article/3443.htm" title="Java中getResourceAsStream的用法" target="_blank">Java中getResourceAsStream的用法</a> <span class="text-muted">pda158</span> <a class="tag" taget="_blank" href="/search/java/1.htm">java</a> <div>1.Java中的getResourceAsStream有以下几种: 1. Class.getResourceAsStream(String path) : path 不以’/'开头时默认是从此类所在的包下取资源,以’/'开头则是从ClassPath根下获取。其只是通过path构造一个绝对路径,最终还是由ClassLoader获取资源。   2. Class.getClassLoader.get</div> </li> <li><a href="/article/3570.htm" title="spring 包官方下载地址(非maven)" target="_blank">spring 包官方下载地址(非maven)</a> <span class="text-muted">sinnk</span> <a class="tag" taget="_blank" href="/search/spring/1.htm">spring</a> <div>SPRING官方网站改版后,建议都是通过 Maven和Gradle下载,对不使用Maven和Gradle开发项目的,下载就非常麻烦,下给出Spring Framework jar官方直接下载路径:   http://repo.springsource.org/libs-release-local/org/springframework/spring/   s</div> </li> <li><a href="/article/3697.htm" title="Oracle学习笔记(7) 开发PLSQL子程序和包" target="_blank">Oracle学习笔记(7) 开发PLSQL子程序和包</a> <span class="text-muted">vipbooks</span> <a class="tag" taget="_blank" href="/search/oracle/1.htm">oracle</a><a class="tag" taget="_blank" href="/search/sql/1.htm">sql</a><a class="tag" taget="_blank" href="/search/%E7%BC%96%E7%A8%8B/1.htm">编程</a> <div>    哈哈,清明节放假回去了一下,真是太好了,回家的感觉真好啊!现在又开始出差之旅了,又好久没有来了,今天继续Oracle的学习!      这是第七章的学习笔记,学习完第六章的动态SQL之后,开始要学习子程序和包的使用了……,希望大家能多给俺一些支持啊!     编程时使用的工具是PLSQL</div> </li> </ul> </div> </div> </div> <div> <div class="container"> <div class="indexes"> <strong>按字母分类:</strong> <a href="/tags/A/1.htm" target="_blank">A</a><a href="/tags/B/1.htm" target="_blank">B</a><a href="/tags/C/1.htm" target="_blank">C</a><a href="/tags/D/1.htm" target="_blank">D</a><a href="/tags/E/1.htm" target="_blank">E</a><a href="/tags/F/1.htm" target="_blank">F</a><a href="/tags/G/1.htm" target="_blank">G</a><a href="/tags/H/1.htm" target="_blank">H</a><a href="/tags/I/1.htm" target="_blank">I</a><a href="/tags/J/1.htm" target="_blank">J</a><a href="/tags/K/1.htm" target="_blank">K</a><a href="/tags/L/1.htm" target="_blank">L</a><a href="/tags/M/1.htm" target="_blank">M</a><a href="/tags/N/1.htm" target="_blank">N</a><a href="/tags/O/1.htm" target="_blank">O</a><a href="/tags/P/1.htm" target="_blank">P</a><a href="/tags/Q/1.htm" target="_blank">Q</a><a href="/tags/R/1.htm" target="_blank">R</a><a href="/tags/S/1.htm" target="_blank">S</a><a href="/tags/T/1.htm" target="_blank">T</a><a href="/tags/U/1.htm" target="_blank">U</a><a href="/tags/V/1.htm" target="_blank">V</a><a href="/tags/W/1.htm" target="_blank">W</a><a href="/tags/X/1.htm" target="_blank">X</a><a href="/tags/Y/1.htm" target="_blank">Y</a><a href="/tags/Z/1.htm" target="_blank">Z</a><a href="/tags/0/1.htm" target="_blank">其他</a> </div> </div> </div> <footer id="footer" class="mb30 mt30"> <div class="container"> <div class="footBglm"> <a target="_blank" href="/">首页</a> - <a target="_blank" href="/custom/about.htm">关于我们</a> - <a target="_blank" href="/search/Java/1.htm">站内搜索</a> - <a target="_blank" href="/sitemap.txt">Sitemap</a> - <a target="_blank" href="/custom/delete.htm">侵权投诉</a> </div> <div class="copyright">版权所有 IT知识库 CopyRight © 2000-2050 E-COM-NET.COM , All Rights Reserved. <!-- <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">京ICP备09083238号</a><br>--> </div> </div> </footer> <!-- 代码高亮 --> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shCore.js"></script> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shLegacy.js"></script> <script type="text/javascript" src="/static/syntaxhighlighter/scripts/shAutoloader.js"></script> <link type="text/css" rel="stylesheet" href="/static/syntaxhighlighter/styles/shCoreDefault.css"/> <script type="text/javascript" src="/static/syntaxhighlighter/src/my_start_1.js"></script> </body> </html>