Parses the XML Declaration

package SimplePie
subpackage Parsing

 Methods

Create an instance of the class with the input data

__construct(string $data) 
access public

Parameters

$data

string

Input data

before_version_name()

before_version_name() 

encoding_equals()

encoding_equals() 

encoding_name()

encoding_name() 

encoding_value()

encoding_value() 

Read value

get_value() 

Check whether there is data beyond the pointer

has_data() : boolean
access private

Returns

booleantrue if there is further data, false if not

Parse the input data

parse() : boolean
access public

Returns

booleantrue on success, false on failure

Advance past any whitespace

skip_whitespace() : integer

Returns

integerNumber of whitespace characters passed

standalone_equals()

standalone_equals() 

standalone_name()

standalone_name() 

standalone_value()

standalone_value() 

version_equals()

version_equals() 

version_name()

version_name() 

version_value()

version_value() 

 Properties

 

Input data

$data : string

Default

''
access private
 

Input data length (to avoid calling strlen() everytime this is needed)

$data_length : integer

Default

0
access private
 

Encoding

$encoding : string

Default

'UTF-8'
access public
 

Current position of the pointer

$position : integer

Default

0
access private
 

Standalone

$standalone : boolean

Default

false
access public
 

Current state of the state machine

$state : string

Default

'before_version_name'
access private
 

XML Version

$version : string

Default

'1.0'
access public