How to import XML contents into EZP using CRON ?

Author Message

H-Works Agency

Wednesday 30 August 2006 6:08:24 am

How to import XML contents into EZP using CRON ?

In fact i need to "synchronize" an EZP content classes objects with an external database.

This database will make a XML file with all those records but how to import those, for exemple every night, into EZP ?

Thanx for your help
Martin Harispuru

EZP is Great

K259

Wednesday 30 August 2006 3:40:51 pm

A lot of people in this forum need this kind of script also. Either import via xml or ordinary text, and an explanation where to import the new content(ezcontentobject, ezcontentobject_attribute, ezcontent_tree etc.) so the data is stored correctly according to the ez publish data structuere.

Since this is an open source cms..there should absolutely be such a scripts available, and with very good documentation on how users can import data to ez publish.

Why has this been discussed so many times, without no answers or results?

Kristof Coomans

Thursday 31 August 2006 5:59:31 am

There are several good contributions doing imports at: http://ez.no/community/contribs/import_export

One of them is based on xml: http://ez.no/community/contribs/import_export/import_xml_data

Why has this been discussed so many times, without no answers or results?

I would not say these discussions did not have any results. Try to explain us what you exactly mean.

It's very hard to make a one-fits-all import solution, and I think this counts for every CMS.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 21:00:22
Script start
Timing: Jan 18 2025 21:00:22
Module start 'layout'
Timing: Jan 18 2025 21:00:22
Module start 'content'
Timing: Jan 18 2025 21:00:23
Module end 'content'
Timing: Jan 18 2025 21:00:23
Script end

Main resources:

Total runtime0.7461 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.0391152.6406
Module start 'layout' 0.00480.0034 740.679739.4766
Module start 'content' 0.00820.7365 780.1563573.8828
Module end 'content' 0.74460.0014 1,354.039112.1250
Script end 0.7461  1,366.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4264160.0002
Check MTime0.00140.1889160.0001
Mysql Total
Database connection0.00060.086710.0006
Mysqli_queries0.695193.1627590.0118
Looping result0.00070.0954570.0000
Template Total0.715595.920.3577
Template load0.00190.250920.0009
Template processing0.713695.637720.3568
Template load and register function0.00020.023310.0002
states
state_id_array0.00130.175210.0013
state_identifier_array0.00100.135520.0005
Override
Cache load0.00150.2057200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088630.0002
Fetch class attribute name0.00100.133450.0002
XML
Image XML parsing0.00100.138030.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00090.1219230.0000
String conversion0.00000.001340.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs