XML_Utilpear.php.netXML utility classSelection of methods that are often needed when working with XML documents. Functionality includes creating of attribute lists from arrays, creation of tags, validation of XML names and more.Chuck Burgessashnazgashnazg@php.netyesStephan Schmidtschstschst@php-tools.netnoDavey Shafikdaveydavey@php.netno2020-04-191.4.51.4.0stablestableBSD License
* PR #12: fix Trying to access array offset on value of type int
5.4.01.9.0pcre0.10.1stablestable2003-08-01PHP License
inital release
0.1.10.1.1stablestable2003-08-02PHP License
bugfix: removed bug in createTagFromArray
0.20.2stablestable2003-08-12PHP License
added XML_Util::getDocTypeDeclaration()
0.2.10.2.1stablestable2003-09-05PHP License
fixed bug with zero as tag content in createTagFromArray and createTag
0.30.3stablestable2003-09-12PHP License
added createStartElement() and createEndElement()
0.40.4stablestable2003-09-21PHP License
added createCDataSection(),
added support for CData sections in createTag* methods,
fixed bug #23,
fixed bug in splitQualifiedName()
0.50.5stablestable2003-09-23PHP License
added support for multiline attributes in attributesToString(), createTag*() and createStartElement (requested by Yavor Shahpasov for XML_Serializer),
added createComment
0.5.10.5.1stablestable2003-09-26PHP License
added default namespace parameter (optional) in splitQualifiedName() (requested by Sebastian Bergmann)
0.5.20.5.2stablestable2003-11-22PHP License
now creates XHTML compliant empty tags (Davey),
minor whitespace fixes (Davey)
0.6.0beta10.6.0beta1betabeta2004-05-24PHP License
- Fixed bug 1438 (namespaces not accepted for isValidName()) (thanks to davey)
- added optional parameter to replaceEntities() to define the set of entities to replace
- added optional parameter to attributesToString() to define, whether entities should be replaced (requested by Sebastian Bergmann)
- allowed second parameter to XML_Util::attributesToString() to be an array containing options (easier to use, if you only need to set the last parameter)
- introduced XML_Util::raiseError() to avoid the necessity of including PEAR.php, will only be included on error
0.6.00.6.0stablestable2004-06-07PHP License
- Fixed bug 1438 (namespaces not accepted for isValidName()) (thanks to davey)
- added optional parameter to replaceEntities() to define the set of entities to replace
- added optional parameter to attributesToString() to define, whether entities should be replaced (requested by Sebastian Bergmann)
- allowed second parameter to XML_Util::attributesToString() to be an array containing options (easier to use, if you only need to set the last parameter)
- introduced XML_Util::raiseError() to avoid the necessity of including PEAR.php, will only be included on error
0.6.10.6.1stablestable2004-10-28PHP License
- Added check for tag name (either as local part or qualified name) in createTagFromArray() (bug #1083)
1.0.01.0.0stablestable2004-10-28PHP License
- Added reverseEntities() (request #2639)
1.1.01.1.0stablestable2004-11-19PHP License
- Added collapseEmptyTags (patch by Sebastian Bergmann and Thomas Duffey)
1.1.11.1.1stablestable2004-12-23PHP License
- fixed bug in replaceEntities() and reverseEntities() in conjunction with XML_UTIL_ENTITIES_HTML
- createTag() and createTagFromArray() now accept XML_UTIL_ENTITIES_XML, XML_UTIL_ENTITIES_XML_REQUIRED, XML_UTIL_ENTITIES_HTML, XML_UTIL_ENTITIES_NONE and XML_UTIL_CDATA_SECTION as $replaceEntities parameter
1.1.21.1.2stablestable2006-12-01PHP License
- fixed bug #5419: isValidName() now checks for character classes
- implemented request #8196: added optional parameter to influence array sorting to createTag() createTagFromArray() and createStartElement()
1.1.41.1.4stablestable2006-12-16PHP License
- Fixed bug #9561: Not allowing underscores in middle of tags
1.2.0a11.2.0alphaalpha2008-05-04BSD License
Changed license to New BSD License (Req #13826 [ashnazg])
Added a test suite against all API methods [ashnazg]
Switch to package.xml v2 [ashnazg]
Fixed Bug #4950: Incorrect CDATA serializing [ashnazg|ja.doma]
1.2.0a21.2.0alphaalpha2008-05-22BSD License
Changed license to New BSD License (Req #13826 [ashnazg])
Added a test suite against all API methods [ashnazg]
Switch to package.xml v2 [ashnazg]
Added Req #13839: Missing XHTML empty tags to collapse [ashnazg|drry]
Fixed Bug #5392: encoding of ISO-8859-1 is the only supported encoding [ashnazg]
Fixed Bug #4950: Incorrect CDATA serializing [ashnazg|drry]
-- (this fix differs from the one in v1.2.0a1)
1.2.0RC11.2.0betabeta2008-07-12BSD License
Changed license to New BSD License (Req #13826 [ashnazg])
Added a test suite against all API methods [ashnazg]
Switch to package.xml v2 [ashnazg]
Added Req #13839: Missing XHTML empty tags to collapse [ashnazg|drry]
Fixed Bug #5392: encoding of ISO-8859-1 is the only supported encoding [ashnazg]
Fixed Bug #4950: Incorrect CDATA serializing [ashnazg|drry]
-- (this fix differs from the one in v1.2.0a1)
1.2.01.2.0stablestable2008-07-26BSD License
Changed license to New BSD License (Req #13826 [ashnazg])
Added a test suite against all API methods [ashnazg]
Switch to package.xml v2 [ashnazg]
Added Req #13839: Missing XHTML empty tags to collapse [ashnazg|drry]
Fixed Bug #5392: encoding of ISO-8859-1 is the only supported encoding [ashnazg]
Fixed Bug #4950: Incorrect CDATA serializing [ashnazg|drry]
-- (this fix differs from the one in v1.2.0a1)
1.2.11.2.0stablestable2011-12-31BSD License
Fixed Bug #14760: Bug in getDocTypeDeclaration() [ashnazg|fpospisil]
1.2.21.2.0stablestable2014-06-07BSD License
QA release
Bug #18343 Entities in file names decoded during packaging
Bug #19174 upgrade PHPUnit require statements & other fixes (for PEAR QA Team)
Request #19750 examples/example.php encoding
1.2.31.2.0stablestable2014-06-07BSD License
Bug #20293 Broken installation for 1.2.2
1.3.01.3.0stablestable2015-02-27BSD License
* Set minimum PHP version to 5.3.0
* Mark static methods with static keyword
1.4.01.4.0stablestable2017-02-03BSD License
* Set minimum PHP version to 5.4.0
* Set minimum PEAR version to 1.10.1
* Adds a new XML_UTIL_COLLAPSE_NONE option
for preventing empty tag collapsing.
* Request #15467 CDATA sections and blank nodes
1.4.11.4.0stablestable2017-02-07BSD License
* Bug #21177 XML_Util::collapseEmptyTags() can return NULL
1.4.21.4.0stablestable2017-02-22BSD License
* Bug #21184 Collapse issue
1.4.31.4.0stablestable2017-06-28BSD License
* Decrease minimum PEAR version to 1.9.0 to allow PEAR upgrades
1.4.41.4.0stablestable2019-12-05BSD License
* PR #11: fix phplint warning
1.4.51.4.0stablestable2020-04-19BSD License
* PR #12: fix Trying to access array offset on value of type int