Forums / Developer / Warning with ezxmlinputparser.php

Warning with ezxmlinputparser.php

Author Message

Jérôme Vieilledent

Monday 09 June 2008 10:12:28 am

Hello,

I'm porting a big website form eZPublish 3.9.4 to 4.0.0 and I've got a problem with my scripts I use to create content with eZXMLText attributes. The eZXMLInputParser parses my formatted text well but it generates warning like that :
<b>Undefined index: section in kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php on line 1120</b>

I've got this message for each eZXML tag (<line>, <paragraph>, <strong>, even "#text").

Here's my code :

$parser = new eZXMLInputParser();
$parser->setParseLineBreaks(true);
$document = $parser->process($xmlContent);
$xmlString = eZXMLTextType::domString($document);

Any idea ?