首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

XMLReader::moveToElement

(PHP 5 >= 5.1.0, PHP 7)

XMLReader :: moveToElement - 将光标定位在当前属性的父元素上

描述

代码语言:javascript
复制
public bool XMLReader::moveToElement ( void )

将光标移动到当前属性的父元素。

返回值

如果成功则返回TRUE,如果失败则返回FALSE,或者在调用此方法时未定位在Attribute上。

扩展内容

  • XMLReader :: moveToAttribute() - 将光标移动到指定的属性
  • XMLReader :: moveToAttributeNo() - 通过索引将光标移动到某个属性
  • XMLReader :: moveToAttributeNs() - 将光标移动到指定的属性
  • XMLReader :: moveToFirstAttribute() - 将光标定位在第一个属性上

← XMLReader::moveToAttributeNs

XMLReader::moveToFirstAttribute →

扫码关注腾讯云开发者

领取腾讯云代金券