Handles a block of CDATA
void
characterData
(resource $parser, string $data)
-
resource
$parser: XML parser
-
string
$data: Character data
Handles the end of a XML element
void
endElement
(resource $parser, string $name)
-
resource
$parser: XML parser
-
string
$name: Element name
Handles the end of a namespace declaration
void
endNamespace
(resource $parser, string $prefix)
-
resource
$parser: XML parser
-
string
$prefix: NS prefix
Handles a reference to an external entity
void
externalEntityRef
(resource $parser, string $openEntityNames, string $base, string $systemId, string $publicId)
-
resource
$parser: XML parser
-
string
$openEntityNames: Space-separated list of open entity names
-
string
$base: Base for resolving the system identifier
-
string
$systemId: System identifier
-
string
$publicId: Public identifier
Handles a notation declaration
void
notationDecl
(resource $parser, string $notationName, string $base, string $systemId, string $publicId)
-
resource
$parser: XML parser
-
string
$notationName: Notation name
-
string
$base: Base for resolving the system identifier (system_id) of the notation declaration
-
string
$systemId: System identifier
-
string
$publicId: Public identifier
Parses XML content
bool
parse
(string $xmlContent, [int $srcType = T_BYFILE])
-
string
$xmlContent: XML contents or file path
-
int
$srcType: Source type: T_BYFILE or T_BYVAR
Redefined in descendants as:
Handles a processing instruction
void
processingInstruction
(resource $parser, string $target, string $data)
-
resource
$parser: XML parser
-
string
$target: Processing instruction target
-
string
$data: Instruction data
Enable/disable parsing of namespaces
void
setNamespaceAwareness
([bool $setting = TRUE])
-
bool
$setting: Flag value
Set an option of the XML parser
For more details, please read the documentation of the http://www.php.net/xml_parser_set_option function.
void
setParserOption
(int $option, mixed $value)
-
int
$option: Option
-
mixed
$value: Value
Enable/disable preservation of whitespace chars
void
setPreserveWhitespace
(bool $setting)
-
bool
$setting: Flag value
Set parser input encoding
void
setSourceEncoding
(string $encoding)
-
string
$encoding: Encoding
Set parser output encoding
void
setTargetEncoding
(string $encoding)
-
string
$encoding: Output encoding
Handles the start of a XML element
void
startElement
(resource $parser, string $name, array $attrs)
-
resource
$parser: XML parser
-
string
$name: Element name
-
array
$attrs: Element attributes
Handles the start of a XML element, when namespaces parsing is enabled
void
startElementNS
(resource $parser, string $name, array $attrs)
-
resource
$parser: XML parser
-
string
$name: Element name
-
array
$attrs: Element attributes
Handles the start of a namespace declaration
void
startNamespace
(resource $parser, string $prefix, string $uri)
-
resource
$parser: XML parser
-
string
$prefix: NS prefix
-
string
$uri: NS URI
Handles unparsed entity declarations
void
unparsedEntityDecl
(resource $parser, string $entityName, string $base, string $systemId, string $publicId, string $notationName)
-
resource
$parser: XML parser
-
string
$entityName: Entity name
-
string
$base: Base for resolving the system identifier
-
string
$systemId: System identifier
-
string
$publicId: Public identifier
-
string
$notationName: Name of the entity's notation
Inherited Methods
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()