MediaWiki
1.28.0
|
XML syntax and type checker. More...
Go to the source code of this file.
Classes | |
class | XmlTypeCheck |
XML syntax and type checker.
Since 1.24.2, it uses XMLReader instead of xml_parse, which gives us more control over the expansion of XML entities. When passed to the callback, entities will be fully expanded, but may report the XML is invalid if expanding the entities are likely to cause a DoS.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file XmlTypeCheck.php.