EzP and XML -> Export data to feed external appi

Author Message

laurent le cadet

Friday 24 September 2004 1:42:46 am

Hello,

Is there a possibility to grab the XML structure and contents of a specific node from an ez db to feed an external appi?
Something like this :

<?xml version="1.0" encoding="UTF-8"?>
<folder>
   <title>which code for the title ?</title>
   <intro>which code for the intro ?</intro>
   <body>which code for the body ?</body>
</folder>

All this is store in one variable ?

Regards.

Laurent.

Björn Dieding@xrow.de

Friday 24 September 2004 4:45:41 am

eZContentObject::serialize()
eZContentObjectAttribute::serialize()
eZContentObjectVersion::serialize()
eZContentObjectTreeNode::serialize()

You mean probably something similar. In those functions is basicly the code you need. Unfortunatelly it is all dependant on a eZPackage. So to speed up the process, I would recommend writing your own stuff.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

laurent le cadet

Friday 24 September 2004 5:34:19 am

Hi Björn,

I never used the packages before. I test this functionnality in admin and manage to produce a .ezpkg.

I understand that you can use this file to import it in another ez site but my pupose is to use it a flash appi feed with external XML files.

Do you still thinking it's possible that way ?

Björn Dieding@xrow.de

Sunday 26 September 2004 11:07:52 pm

That's what those functions do.

They bring persistent object data ( attributes, contentobjects , nodes ) to XML. That's want you need.

As I said before the technique is all inside those functions. So you need to write your one ones.

A *.ezpkg is tared information stored as XML.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

laurent le cadet

Monday 27 September 2004 12:03:15 am

Thanks Björn,

I'm going to try something that way.

Laurent.

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:40:04
Script start
Timing: Jan 18 2025 22:40:04
Module start 'layout'
Timing: Jan 18 2025 22:40:04
Module start 'content'
Timing: Jan 18 2025 22:40:05
Module end 'content'
Timing: Jan 18 2025 22:40:05
Script end

Main resources:

Total runtime0.8789 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.4766152.6406
Module start 'layout' 0.00410.0024 742.117239.4766
Module start 'content' 0.00640.8710 781.5938564.6953
Module end 'content' 0.87750.0013 1,346.289116.1250
Script end 0.8788  1,362.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3039160.0002
Check MTime0.00110.1276160.0001
Mysql Total
Database connection0.00030.035610.0003
Mysqli_queries0.813392.5451630.0129
Looping result0.00060.0703610.0000
Template Total0.847596.420.4238
Template load0.00190.221620.0010
Template processing0.845596.210220.4228
Template load and register function0.00010.010810.0001
states
state_id_array0.00120.134610.0012
state_identifier_array0.00140.159320.0007
Override
Cache load0.00160.1861350.0000
Sytem overhead
Fetch class attribute can translate value0.00050.060220.0003
Fetch class attribute name0.00100.116870.0001
XML
Image XML parsing0.00090.100520.0004
class_abstraction
Instantiating content class attribute0.00000.0024100.0000
General
dbfile0.00070.0851220.0000
String conversion0.00000.000740.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs