11 Commits

Author SHA1 Message Date
Jake Dallimore
786f1270a5 MDL-61619 core: use empty string instead of null in xmlize 2018-03-12 11:12:00 +08:00
Kilian
7825ffb1d5 MDL-38829 core: fix for xmlize is unable to import xml files>10MB
Since version 2.7.3 the libxml library (https://bugs.php.net/bug.php?id=49660)
limits parsing in memory files to 10MB. Unfortunately the libxml option
LIBXML_PARSEHUGE to release the 10MB limit is not exposed to php. Through
using the sax parser which is typically used to parse directly from files but
instead chunking the string in memory xml files larger than 10MB can again
be parsed. I copied the exact behaviour of the previous routine
by Hans Anderson (http://www.hansanderson.com/contact/) so compatibility
should be maintained.
2018-03-06 15:36:08 +08:00
Eloy Lafuente
5423b5f5b1 MDL-13435 xmlize - now throwing exceptions on parsing error. Credit goes to Tim/Mahmoud 2010-09-27 21:10:00 +00:00
samhemelryk
b868d3d9cf lib MDL-19236 Added boilerplates and copyrights 2009-05-26 06:26:11 +00:00
dongsheng
143c1eb921 MDL-9534, fix xmlize() call 2008-04-11 03:59:41 +00:00
nicolasconnault
20355e5ac2 MDL-9138; Edited lib/xmlize.php to return false when the passed file doesn't return any entries (when it's not valid XML or is empty). Also made it much clearer that glossary/import requires an XML file, not just any old file. 2007-04-04 03:35:23 +00:00
dhawes
da72d76d30 added '@access private' docblock tags to functions that should not be called directly 2004-09-28 16:40:26 +00:00
dhawes
a93ea924a0 Converted comments to phpdoc style comments 2004-09-26 04:49:39 +00:00
stronk7
ca83aa54ed Updated xmilze to official new 1.0.1 version
(it's 'our' version with some comments).

Merged from MOODLE_14_STABLE
2004-09-25 16:22:25 +00:00
moodler
b797605898 Merged XML UTF-8 fixed from stable (see bug 1927) 2004-09-13 08:17:09 +00:00
moodler
b3afe8244a Useful function for XML ... currently used only in Blackboard quiz importing 2003-05-01 13:57:35 +00:00