php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
XMLReader Class Reference

Public Member Functions

 close ()
 
 getAttribute (string $name)
 
 getAttributeNo (int $index)
 
 getAttributeNs (string $name, string $namespace)
 
 getParserProperty (int $property)
 
 isValid ()
 
 lookupNamespace (string $prefix)
 
 moveToAttribute (string $name)
 
 moveToAttributeNo (int $index)
 
 moveToAttributeNs (string $name, string $namespace)
 
 moveToElement ()
 
 moveToFirstAttribute ()
 
 moveToNextAttribute ()
 
 read ()
 
 next (?string $name=null)
 
 readInnerXml ()
 
 readOuterXml ()
 
 readString ()
 
 setSchema (?string $filename)
 
 setParserProperty (int $property, bool $value)
 
 setRelaxNGSchema (?string $filename)
 
 setRelaxNGSchemaSource (?string $source)
 
 expand (?DOMNode $baseNode=null)
 

Static Public Member Functions

static open (string $uri, ?string $encoding=null, int $flags=0)
 
static fromUri (string $uri, ?string $encoding=null, int $flags=0)
 
static fromStream ($stream, ?string $encoding=null, int $flags=0, ?string $documentUri=null)
 
static XML (string $source, ?string $encoding=null, int $flags=0)
 
static fromString (string $source, ?string $encoding=null, int $flags=0)
 

Data Fields

const int NONE = UNKNOWN
 
const int ELEMENT = UNKNOWN
 
const int ATTRIBUTE = UNKNOWN
 
const int TEXT = UNKNOWN
 
const int CDATA = UNKNOWN
 
const int ENTITY_REF = UNKNOWN
 
const int ENTITY = UNKNOWN
 
const int PI = UNKNOWN
 
const int COMMENT = UNKNOWN
 
const int DOC = UNKNOWN
 
const int DOC_TYPE = UNKNOWN
 
const int DOC_FRAGMENT = UNKNOWN
 
const int NOTATION = UNKNOWN
 
const int WHITESPACE = UNKNOWN
 
const int SIGNIFICANT_WHITESPACE = UNKNOWN
 
const int END_ELEMENT = UNKNOWN
 
const int END_ENTITY = UNKNOWN
 
const int XML_DECLARATION = UNKNOWN
 
const int LOADDTD = UNKNOWN
 
const int DEFAULTATTRS = UNKNOWN
 
const int VALIDATE = UNKNOWN
 
const int SUBST_ENTITIES = UNKNOWN
 
int $attributeCount
 
string $baseURI
 
int $depth
 
bool $hasAttributes
 
bool $hasValue
 
bool $isDefault
 
bool $isEmptyElement
 
string $localName
 
string $name
 
string $namespaceURI
 
int $nodeType
 
string $prefix
 
string $value
 
string $xmlLang
 

Detailed Description

@generate-class-entries

Definition at line 5 of file php_xmlreader.stub.php.

Member Function Documentation

◆ close()

XMLReader::close ( )

@tentative-return-type

Definition at line 145 of file php_xmlreader.stub.php.

◆ expand()

XMLReader::expand ( ?DOMNode $baseNode = null)

@tentative-return-type

Definition at line 224 of file php_xmlreader.stub.php.

◆ fromStream()

static XMLReader::fromStream ( $stream,
?string $encoding = null,
int $flags = 0,
?string $documentUri = null )
static
Parameters
resource$stream

Definition at line 195 of file php_xmlreader.stub.php.

◆ fromString()

static XMLReader::fromString ( string $source,
?string $encoding = null,
int $flags = 0 )
static

Definition at line 221 of file php_xmlreader.stub.php.

◆ fromUri()

static XMLReader::fromUri ( string $uri,
?string $encoding = null,
int $flags = 0 )
static

Definition at line 192 of file php_xmlreader.stub.php.

◆ getAttribute()

XMLReader::getAttribute ( string $name)

@tentative-return-type

Definition at line 148 of file php_xmlreader.stub.php.

◆ getAttributeNo()

XMLReader::getAttributeNo ( int $index)

@tentative-return-type

Definition at line 151 of file php_xmlreader.stub.php.

◆ getAttributeNs()

XMLReader::getAttributeNs ( string $name,
string $namespace )

@tentative-return-type

Definition at line 154 of file php_xmlreader.stub.php.

◆ getParserProperty()

XMLReader::getParserProperty ( int $property)

@tentative-return-type

Definition at line 157 of file php_xmlreader.stub.php.

◆ isValid()

XMLReader::isValid ( )

@tentative-return-type

Definition at line 160 of file php_xmlreader.stub.php.

◆ lookupNamespace()

XMLReader::lookupNamespace ( string $prefix)

@tentative-return-type

Definition at line 163 of file php_xmlreader.stub.php.

◆ moveToAttribute()

XMLReader::moveToAttribute ( string $name)

@tentative-return-type

Definition at line 166 of file php_xmlreader.stub.php.

◆ moveToAttributeNo()

XMLReader::moveToAttributeNo ( int $index)

@tentative-return-type

Definition at line 169 of file php_xmlreader.stub.php.

◆ moveToAttributeNs()

XMLReader::moveToAttributeNs ( string $name,
string $namespace )

@tentative-return-type

Definition at line 172 of file php_xmlreader.stub.php.

◆ moveToElement()

XMLReader::moveToElement ( )

@tentative-return-type

Definition at line 175 of file php_xmlreader.stub.php.

◆ moveToFirstAttribute()

XMLReader::moveToFirstAttribute ( )

@tentative-return-type

Definition at line 178 of file php_xmlreader.stub.php.

◆ moveToNextAttribute()

XMLReader::moveToNextAttribute ( )

@tentative-return-type

Definition at line 181 of file php_xmlreader.stub.php.

◆ next()

XMLReader::next ( ?string $name = null)

@tentative-return-type

Definition at line 187 of file php_xmlreader.stub.php.

◆ open()

static XMLReader::open ( string $uri,
?string $encoding = null,
int $flags = 0 )
static
Returns
bool|XMLReader

Definition at line 190 of file php_xmlreader.stub.php.

◆ read()

XMLReader::read ( )

@tentative-return-type

Definition at line 184 of file php_xmlreader.stub.php.

◆ readInnerXml()

XMLReader::readInnerXml ( )

@tentative-return-type

Definition at line 198 of file php_xmlreader.stub.php.

◆ readOuterXml()

XMLReader::readOuterXml ( )

@tentative-return-type

Definition at line 201 of file php_xmlreader.stub.php.

◆ readString()

XMLReader::readString ( )

@tentative-return-type

Definition at line 204 of file php_xmlreader.stub.php.

◆ setParserProperty()

XMLReader::setParserProperty ( int $property,
bool $value )

@tentative-return-type

Definition at line 210 of file php_xmlreader.stub.php.

◆ setRelaxNGSchema()

XMLReader::setRelaxNGSchema ( ?string $filename)

@tentative-return-type

Definition at line 213 of file php_xmlreader.stub.php.

◆ setRelaxNGSchemaSource()

XMLReader::setRelaxNGSchemaSource ( ?string $source)

@tentative-return-type

Definition at line 216 of file php_xmlreader.stub.php.

◆ setSchema()

XMLReader::setSchema ( ?string $filename)

@tentative-return-type

Definition at line 207 of file php_xmlreader.stub.php.

◆ XML()

static XMLReader::XML ( string $source,
?string $encoding = null,
int $flags = 0 )
static
Returns
bool|XMLReader

Definition at line 219 of file php_xmlreader.stub.php.

Field Documentation

◆ $attributeCount

int XMLReader::$attributeCount

@virtual

Definition at line 103 of file php_xmlreader.stub.php.

◆ $baseURI

string XMLReader::$baseURI

@virtual

Definition at line 106 of file php_xmlreader.stub.php.

◆ $depth

int XMLReader::$depth

@virtual

Definition at line 109 of file php_xmlreader.stub.php.

◆ $hasAttributes

bool XMLReader::$hasAttributes

@virtual

Definition at line 112 of file php_xmlreader.stub.php.

◆ $hasValue

bool XMLReader::$hasValue

@virtual

Definition at line 115 of file php_xmlreader.stub.php.

◆ $isDefault

bool XMLReader::$isDefault

@virtual

Definition at line 118 of file php_xmlreader.stub.php.

◆ $isEmptyElement

bool XMLReader::$isEmptyElement

@virtual

Definition at line 121 of file php_xmlreader.stub.php.

◆ $localName

string XMLReader::$localName

@virtual

Definition at line 124 of file php_xmlreader.stub.php.

◆ $name

string XMLReader::$name

@virtual

Definition at line 127 of file php_xmlreader.stub.php.

◆ $namespaceURI

string XMLReader::$namespaceURI

@virtual

Definition at line 130 of file php_xmlreader.stub.php.

◆ $nodeType

int XMLReader::$nodeType

@virtual

Definition at line 133 of file php_xmlreader.stub.php.

◆ $prefix

string XMLReader::$prefix

@virtual

Definition at line 136 of file php_xmlreader.stub.php.

◆ $value

string XMLReader::$value

@virtual

Definition at line 139 of file php_xmlreader.stub.php.

◆ $xmlLang

string XMLReader::$xmlLang

@virtual

Definition at line 142 of file php_xmlreader.stub.php.

◆ ATTRIBUTE

const int XMLReader::ATTRIBUTE = UNKNOWN

@cvalue XML_READER_TYPE_ATTRIBUTE

Definition at line 20 of file php_xmlreader.stub.php.

◆ CDATA

const int XMLReader::CDATA = UNKNOWN

@cvalue XML_READER_TYPE_CDATA

Definition at line 28 of file php_xmlreader.stub.php.

◆ COMMENT

const int XMLReader::COMMENT = UNKNOWN

@cvalue XML_READER_TYPE_COMMENT

Definition at line 44 of file php_xmlreader.stub.php.

◆ DEFAULTATTRS

const int XMLReader::DEFAULTATTRS = UNKNOWN

@cvalue XML_PARSER_DEFAULTATTRS

Definition at line 91 of file php_xmlreader.stub.php.

◆ DOC

const int XMLReader::DOC = UNKNOWN

@cvalue XML_READER_TYPE_DOCUMENT

Definition at line 48 of file php_xmlreader.stub.php.

◆ DOC_FRAGMENT

const int XMLReader::DOC_FRAGMENT = UNKNOWN

@cvalue XML_READER_TYPE_DOCUMENT_FRAGMENT

Definition at line 56 of file php_xmlreader.stub.php.

◆ DOC_TYPE

const int XMLReader::DOC_TYPE = UNKNOWN

@cvalue XML_READER_TYPE_DOCUMENT_TYPE

Definition at line 52 of file php_xmlreader.stub.php.

◆ ELEMENT

const int XMLReader::ELEMENT = UNKNOWN

@cvalue XML_READER_TYPE_ELEMENT

Definition at line 16 of file php_xmlreader.stub.php.

◆ END_ELEMENT

const int XMLReader::END_ELEMENT = UNKNOWN

@cvalue XML_READER_TYPE_END_ELEMENT

Definition at line 72 of file php_xmlreader.stub.php.

◆ END_ENTITY

const int XMLReader::END_ENTITY = UNKNOWN

@cvalue XML_READER_TYPE_END_ENTITY

Definition at line 76 of file php_xmlreader.stub.php.

◆ ENTITY

const int XMLReader::ENTITY = UNKNOWN

@cvalue XML_READER_TYPE_ENTITY

Definition at line 36 of file php_xmlreader.stub.php.

◆ ENTITY_REF

const int XMLReader::ENTITY_REF = UNKNOWN

@cvalue XML_READER_TYPE_ENTITY_REFERENCE

Definition at line 32 of file php_xmlreader.stub.php.

◆ LOADDTD

const int XMLReader::LOADDTD = UNKNOWN

@cvalue XML_PARSER_LOADDTD

Definition at line 87 of file php_xmlreader.stub.php.

◆ NONE

const int XMLReader::NONE = UNKNOWN

@cvalue XML_READER_TYPE_NONE

Definition at line 12 of file php_xmlreader.stub.php.

◆ NOTATION

const int XMLReader::NOTATION = UNKNOWN

@cvalue XML_READER_TYPE_NOTATION

Definition at line 60 of file php_xmlreader.stub.php.

◆ PI

const int XMLReader::PI = UNKNOWN

@cvalue XML_READER_TYPE_PROCESSING_INSTRUCTION

Definition at line 40 of file php_xmlreader.stub.php.

◆ SIGNIFICANT_WHITESPACE

const int XMLReader::SIGNIFICANT_WHITESPACE = UNKNOWN

@cvalue XML_READER_TYPE_SIGNIFICANT_WHITESPACE

Definition at line 68 of file php_xmlreader.stub.php.

◆ SUBST_ENTITIES

const int XMLReader::SUBST_ENTITIES = UNKNOWN

@cvalue XML_PARSER_SUBST_ENTITIES

Definition at line 99 of file php_xmlreader.stub.php.

◆ TEXT

const int XMLReader::TEXT = UNKNOWN

@cvalue XML_READER_TYPE_TEXT

Definition at line 24 of file php_xmlreader.stub.php.

◆ VALIDATE

const int XMLReader::VALIDATE = UNKNOWN

@cvalue XML_PARSER_VALIDATE

Definition at line 95 of file php_xmlreader.stub.php.

◆ WHITESPACE

const int XMLReader::WHITESPACE = UNKNOWN

@cvalue XML_READER_TYPE_WHITESPACE

Definition at line 64 of file php_xmlreader.stub.php.

◆ XML_DECLARATION

const int XMLReader::XML_DECLARATION = UNKNOWN

@cvalue XML_READER_TYPE_XML_DECLARATION

Definition at line 80 of file php_xmlreader.stub.php.


The documentation for this class was generated from the following file: