Details
-
Bug
-
Resolution: Won't Fix
-
High
-
5.0.0-dev
-
None
Description
It seems impossible to use simplified XML
I have code like this:
$xmlInputConverter = new eZ\Publish\Core\FieldType\XmlText\Converter\Input\EzSimplifiedXml(); $content->setField( 'xmltext', $xmlInputConverter->convert( $simplifiedXML ) );
Tested values for $simplifiedXML are:
'This is some text in <strong>bold</strong>' 'This is some text' '<section><p>This is a <b>paragraph</b></p></section>'
The exception I get is:
1) eZPublishAPIXMLText::testTC1392XMLTextTagBulletList Exception: /var/www/apache2php53/ezpublish5/vendor/ezsystems/ezpublish/eZ/Publish/Core/FieldType/XmlText/Converter/Input/EzSimplifiedXml.php:72 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/datatypes/xmlblock/ezpublishapixmlblock.php:229 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/datatypes/xmlblock/ezpublishapixmlblock.php:248 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:684 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitest.php:116 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/datatypes/xmlblock/ezpublishapixmlblock.php:235 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:713 /var/www/apache2php53/ezpublish5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:372