⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xpath_intro.asp

📁 W3Schools tutorial..web designing
💻 ASP
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Introduction to XPath</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<link rel="stylesheet" type="text/css" href="../stdtheme.css" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<iframe style="background-color:#808080" src="../banners/bannerframe.asp@adpartner=aspall2" height="90" width="728"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

<br /></th>
</tr>
</table>

<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<b>XPath Tutorial</b><br />
<a class="left" target="_top" href="default.asp" >XPath HOME</a><br />
<a class="left" target="_top" href="xpath_intro.asp" style='font-weight:bold;'>XPath Intro</a><br />
<a class="left" target="_top" href="xpath_nodes.asp" >XPath Nodes</a><br />
<a class="left" target="_top" href="xpath_syntax.asp" >XPath Syntax</a><br />
<a class="left" target="_top" href="xpath_axes.asp" >XPath Axes</a><br />
<a class="left" target="_top" href="xpath_operators.asp" >XPath Operators</a><br />
<a class="left" target="_top" href="xpath_examples.asp" >XPath Examples</a><br />
<a class="left" target="_top" href="xpath_summary.asp" >XPath Summary</a><br />
<br />
<b>References</b>
<br />
<a class="left" target="_top" href="xpath_functions.asp" >XPath Functions</a><br />

<br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="../quality/default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>

<h1>XPath Introduction</h1>
<a href="default.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="xpath_nodes.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<hr />
<p class="intro">XPath is a language for finding information in an XML document. 
XPath is used to navigate through elements and attributes in an XML document.</p>
<hr />


<h2>What You Should Already Know</h2>
<p>Before you continue you should have a basic understanding of the following:</p>
<ul>
  <li>HTML / XHTML</li>
	<li>XML / XML Namespaces</li>
</ul>
<p>If you want to study these subjects first, find the tutorials on our
<a href="../default.asp">Home page</a>.</p>
<hr />


<h2>What is XPath?</h2>
<ul>
  <li>XPath is a syntax for defining parts of an XML document</li>
  <li>XPath uses path expressions to navigate in XML documents</li>
  <li>XPath contains a library of standard functions</li>
  <li>XPath is a major element in XSLT</li>
  <li>XPath is a W3C Standard</li>
</ul>

<hr />

<h2>XPath Path Expressions</h2>
<p>XPath uses path expressions to select nodes or node-sets in an XML document. These path 
expressions look very much like the expressions you see when you work with a 
traditional computer file system.</p>
<hr />

<h2>XPath Standard Functions</h2>

<p>XPath includes over 100 built-in functions. There are 
functions for string values, numeric values, date and time comparison, node and QName 
manipulation, sequence manipulation, Boolean values, and more.<br />
</p>
<hr />

<h2>XPath is Used in XSLT</h2>
<p>XPath is a major element in the XSLT standard. Without XPath knowledge you will not be able to create XSLT documents.</p>
<p>You can read more about XSLT in our <a href="../xsl/default.asp">XSLT 
tutorial</a>.</p>
<p>XQuery and XPointer are both built on XPath expressions. XQuery 1.0 and XPath 2.0 share the same 
data model and support the same functions and operators. </p>
<p>You can read more about XQuery in our <a href="../xquery/default.asp">XQuery 
tutorial</a>.</p>

<hr />

<h2>XPath is a W3C Standard</h2>
<p>XPath became a W3C Recommendation 16. November 1999.</p>
<p>XPath was designed to be used by XSLT, XPointer and other XML parsing 
software.</p>
<p>You can read more about the XPath standard in our
<a href="../w3c/default.asp">W3C 
tutorial</a>.</p>

<hr />
<a href="default.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="xpath_nodes.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<br />
<hr />

<!-- **** SPOTLIGHTS 1 **** -->

<iframe src="../banners/aspallframe.asp" height="110" width="485"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
<hr />
<!-- **** SPOTLIGHTS 2 **** -->

<h2><a target="_blank" href="../../www.altova.com/ref/@s=w3s_spotlight&q=xmlspy">
Altova

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -