eZ Community » Forums » Setup & design » How to use the CreateContentCommand ?...
expandshrink

How to use the CreateContentCommand ? Invalid XML exception

How to use the CreateContentCommand ? Invalid XML exception

Tuesday 12 March 2013 11:43:33 am

I'm learning how to use eZpublish 5 with the official documentation. I've implemented the CreateContentCommand (https://github.com/ezsystems/CookbookBundle/blob/master/Command/ViewContentMetaDataCommand.php) which has to receive the following arguments :

- parent location id

- content type

- title

- intro

- body

but when I try to run it like this :

php ezpublish/console ezpublish:cookbook:create_content 2 article '<title>My Title</title>' '<intro>My intro</intro>' '<body>My body</body>'

I have the following error : 

[eZ\Publish\Core\Base\Exceptions\InvalidArgumentException]                                                                                            
  Argument 'xmlString' is invalid: Validation of XML content failed: Element 'intro': No matching global declaration available for the validation root.

Thanks a lot for your help!

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from