Skip to content

Parser

Parses XML into something sane

This class can be overloaded with {@see \SimplePie\SimplePie::set_parser_class()}

Properties

error_code

public $error_code

error_string

public $error_string

current_line

public $current_line

current_column

public $current_column

current_byte

public $current_byte

separator

public $separator

namespace

public $namespace

element

public $element

xml_base

public $xml_base

xml_base_explicit

public $xml_base_explicit

xml_lang

public $xml_lang

data

public $data

datas

public $datas

current_xhtml_construct

public $current_xhtml_construct

encoding

public $encoding

registry

protected $registry

Methods

set_registry

Set the Registry into the class

public set_registry(\SimplePie\Registry $registry): void

Parameters:

Parameter Type Description
$registry \SimplePie\Registry

parse

public parse(mixed& $data, mixed $encoding, mixed $url = ''): mixed

Parameters:

Parameter Type Description
$data mixed
$encoding mixed
$url mixed

get_error_code

public get_error_code(): mixed

get_error_string

public get_error_string(): mixed

get_current_line

public get_current_line(): mixed

get_current_column

public get_current_column(): mixed

get_current_byte

public get_current_byte(): mixed

get_data

public get_data(): mixed

tag_open

public tag_open(mixed $parser, mixed $tag, mixed $attributes): mixed

Parameters:

Parameter Type Description
$parser mixed
$tag mixed
$attributes mixed

cdata

public cdata(mixed $parser, mixed $cdata): mixed

Parameters:

Parameter Type Description
$parser mixed
$cdata mixed

tag_close

public tag_close(mixed $parser, mixed $tag): mixed

Parameters:

Parameter Type Description
$parser mixed
$tag mixed

split_ns

public split_ns(mixed $string): mixed

Parameters:

Parameter Type Description
$string mixed

parse_hcard

private parse_hcard(mixed $data, mixed $category = false): mixed

Parameters:

Parameter Type Description
$data mixed
$category mixed

parse_microformats

private parse_microformats(mixed& $data, mixed $url): mixed

Parameters:

Parameter Type Description
$data mixed
$url mixed

declare_html_entities

private declare_html_entities(): mixed


Automatically generated on 2025-03-18