Thank you a lot for your help.
A couple of questions:
1) $node = eZFunctionHandler::execute( 'content','node', array( 'node_id' => 2) Should I put "my_object_node_id" node id here? Is correct?
2)$XMLContent = "<section><paragraph>text</paragraph></section>"; Should I put "my_text_string" content instead of text here? Is correct?
Content in ezxmltext datatype is stored as XML structure, base on parser output eZXMLTextType::domString() creates XML structure which you can store in attribute.
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>some text
<strong>this is bold text</strong> some text
<emphasize>some text</emphasize>
</paragraph>
</section>
I'm using your solutio to insert text like this into an ezxmltext attribute :
Da sbarracà i palazzi <br />
MI min / LA min<br />
E da spenticà limperi <br />
SI 7 / MI min<br />
Venutu da i to stazzi <br />
FA / MI min<br />
Cù i to cavalli fieri <br />
SI 7 / MI min<br />
<br />
Attila si scalatu<br />
Cù u ferr è cù u focu<br />
Vecu e greghje infuriate<br />
Ad apparinà u locu<br />
The problem is that special characters like à,ù, etc. make fail the insertion. Replacing them by à is ok but the accent is not interpreted when rendering...
Maybe a problem with the encoding of the xml text generated by the parser no ?
You have to convert you text to the charset you use to make it work (I think there is an option to have several charsets, but I'd rather don't use it).
Say your site is in utf8 and your external xhtml in latin1 you have to utf8 encodes it.