The LibXMLError class
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Introduction
Contains various information about errors thrown by libxml. The error codes are described within the official » xmlError API documentation.
Class synopsis
Properties
level
the severity of the error (one of the following constants:
LIBXML_ERR_WARNING,
LIBXML_ERR_ERROR or
LIBXML_ERR_FATAL)
The error's code.
columnThe column where the error occurred.
messageNote:
This property isn't entirely implemented in libxml and therefore
0is often returned.
The error message, if any.
fileThe filename, or empty if the XML was loaded from a string.
lineThe line where the error occurred.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
