createAndPublishObject and ezxmltext attributes

Author Message

Sébastien Antoniotti

Friday 28 August 2009 7:10:03 am

Hi !

I would like to import xhtml content into ezxmltext attributes with a php-cli import script.

My problem is that I don't know how to parse the xhtml in order to fill my ezxmltext attribute...

There is this method : http://serwatka.net/blog/ezxmltext_how_to_store_and_ouput_your_content ... but it needs to create the object before parsing, and I need to parse before filling the attribute !

Thanks in advance !

eZ Publish Freelance
web : http://www.webaxis.fr

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:18:17
Script start
Timing: Jan 18 2025 22:18:17
Module start 'layout'
Timing: Jan 18 2025 22:18:17
Module start 'content'
Timing: Jan 18 2025 22:18:18
Module end 'content'
Timing: Jan 18 2025 22:18:18
Script end

Main resources:

Total runtime0.7311 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1797152.6406
Module start 'layout' 0.00630.0031 741.820339.4766
Module start 'content' 0.00940.7203 781.2969463.2188
Module end 'content' 0.72970.0014 1,244.51568.1250
Script end 0.7310  1,252.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4247160.0002
Check MTime0.00120.1702160.0001
Mysql Total
Database connection0.00090.121410.0009
Mysqli_queries0.691594.5906460.0150
Looping result0.00040.0592440.0000
Template Total0.699995.720.3499
Template load0.00200.272220.0010
Template processing0.697995.458420.3489
Template load and register function0.00010.014210.0001
states
state_id_array0.00110.154510.0011
state_identifier_array0.00070.094220.0003
Override
Cache load0.00160.216390.0002
Sytem overhead
Fetch class attribute can translate value0.00060.085310.0006
Fetch class attribute name0.00070.101120.0004
XML
Image XML parsing0.00050.067310.0005
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00190.2607160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs