downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/class.domxpath.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.dom.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'class.domxpath.php',
   
1 => 'DOMXPath',
  ),
 
'up' =>
  array (
   
0 => 'book.dom.php',
   
1 => 'Document Object Model',
  ),
 
'prev' =>
  array (
   
0 => 'domtext.splittext.php',
   
1 => 'DOMText::splitText',
  ),
 
'next' =>
  array (
   
0 => 'domxpath.construct.php',
   
1 => 'DOMXPath::__construct',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1 class="title">The DOMXPath class</h1>
 
 
 <div class="partintro">
 

  <div id="domxpath.intro" class="section">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Supports XPath 1.0
   </p>
  </div>

 
  <div id="domxpath.synopsis" class="section">
   <h2 class="title">Class synopsis</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"><b class="classname">DOMXPath</b></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <b class="classname">DOMXPath</b>
     </span>
 
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties */</div>

    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="type"><a href="class.domdocument.php" class="type DOMDocument">DOMDocument</a></span>
      <var class="varname"><a href="class.domxpath.php#domxpath.props.document">$document</a></var>
    ;</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
     <span class="methodname"><b>__construct</b></span>
     ( <span class="methodparam"><span class="type"><a href="class.domdocument.php" class="type DOMDocument">DOMDocument</a></span> <tt class="parameter">$doc</tt></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mixed</span> <span class="methodname"><a href="domxpath.evaluate.php" class="function">evaluate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$expression</tt></span>
   [, <span class="methodparam"><span class="type"><a href="class.domnode.php" class="type DOMNode">DOMNode</a></span> <tt class="parameter">$contextnode</tt></span>     
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">DOMNodeList</span> <span class="methodname"><a href="domxpath.query.php" class="function">query</a></span>
    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$expression</tt></span>
   [, <span class="methodparam"><span class="type"><a href="class.domnode.php" class="type DOMNode">DOMNode</a></span> <tt class="parameter">$contextnode</tt></span>     
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><a href="domxpath.registernamespace.php" class="function">registerNamespace</a></span>
    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$prefix</tt></span>
   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$namespaceURI</tt></span>     
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="domxpath.registerphpfunctions.php" class="function">registerPhpFunctions</a></span>
    ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$restrict</tt></span>
  ] )</div>

 
   }</div>

 
  </div>
 


  <div id="domxpath.props" class="section">
   <h2 class="title">Properties</h2>
   <dl>

    <dt id="domxpath.props.document" class="varlistentry">
     <span class="term"><var class="varname">document</var></span>

     </dt><dd class="listitem">

      <p class="para">Prop description</p>
     </dd>

   
   </dl>

  </div>

 



 
 </div>
 
 































 
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="domxpath.construct.php">DOMXPath::__construct</a> — Creates a new DOMXPath object</li><li><a href="domxpath.evaluate.php">DOMXPath::evaluate</a> — Evaluates the given XPath expression and returns a typed result if possible.</li><li><a href="domxpath.query.php">DOMXPath::query</a> — Evaluates the given XPath expression</li><li><a href="domxpath.registernamespace.php">DOMXPath::registerNamespace</a> — Registers the namespace with the DOMXPath object</li><li><a href="domxpath.registerphpfunctions.php">DOMXPath::registerPhpFunctions</a> — Register PHP functions as XPath functions</li></ul>
</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites