<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xmlreader.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'xmlreader.movetoelement.php',
    1 => 'XMLReader::moveToElement',
    2 => 'Position cursor on the parent Element of current Attribute',
  ),
  'up' => 
  array (
    0 => 'class.xmlreader.php',
    1 => 'XMLReader',
  ),
  'prev' => 
  array (
    0 => 'xmlreader.movetoattributens.php',
    1 => 'XMLReader::moveToAttributeNs',
  ),
  'next' => 
  array (
    0 => 'xmlreader.movetofirstattribute.php',
    1 => 'XMLReader::moveToFirstAttribute',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xmlreader/xmlreader/movetoelement.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xmlreader.movetoelement" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XMLReader::moveToElement</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">XMLReader::moveToElement</span> &mdash; <span class="dc-title">Position cursor on the parent Element of current Attribute</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-xmlreader.movetoelement-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>XMLReader::moveToElement</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Moves cursor to the parent Element of current Attribute. 
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-xmlreader.movetoelement-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-xmlreader.movetoelement-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if successful and <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if it fails or not positioned on 
   Attribute when this method is called.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-xmlreader.movetoelement-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="xmlreader.movetoattribute.php" class="methodname" rel="rdfs-seeAlso">XMLReader::moveToAttribute()</a> - Move cursor to a named attribute</span></li>
    <li><span class="methodname"><a href="xmlreader.movetoattributeno.php" class="methodname" rel="rdfs-seeAlso">XMLReader::moveToAttributeNo()</a> - Move cursor to an attribute by index</span></li>
    <li><span class="methodname"><a href="xmlreader.movetoattributens.php" class="methodname" rel="rdfs-seeAlso">XMLReader::moveToAttributeNs()</a> - Move cursor to a named attribute</span></li>
    <li><span class="methodname"><a href="xmlreader.movetofirstattribute.php" class="methodname" rel="rdfs-seeAlso">XMLReader::moveToFirstAttribute()</a> - Position cursor on the first Attribute</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>