Forums / Developer / How to get XML output for all the contents

How to get XML output for all the contents

Author Message

Satheesh R

Thursday 13 March 2008 12:05:12 am

Hello All,

Kindly give some guidance to achieve the followings,

1. I'm using eZ4.0, i want to know how to get all the eZ contents (Which are posted/uploaded in ADMIN side including Images and all type of files) in a XML format(XML output).
2. The thing is i have to pass those information to FLASH (is it achievable ..?).

kindly guide me
Thanks in advance

Regards
Shr

Thanks and Regards
R Satheesh

Bruce Morrison

Thursday 13 March 2008 12:34:47 am

Hi Satheesh

Basically you want to :
# create a layout for the XML output (layout.ini)
# overwrite the "Content-Type" header for this layout so that the ouput is presented as XML (layout.ini)
# create templates to produce the desired output

I wrote about this here
http://suffandnonsense.blogspot.com/2007/05/easy-web-services-with-ez-publish.html While it doesn't cover what you are asking 100% is should give you enough to do what you want.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Satheesh R

Thursday 13 March 2008 1:40:05 am

Hi Bruce,
Thanks for the reply.

Yes i read your article already and i tried the followings

1. Added the following code in <b> layout.ini </b>

    	[xml]
	PageLayout=xml_pagelayout.tpl
	ContentType=text/xml
 

and i created a override file for pagelayout which is <b> xml_pagelayout.tpl </b> (i dunno wheather it is needed or not) which is loaded with sample xml tags

2. With the help of one earlier forum i have changed the article.tpl file in full XML format (Article - Full view for flash step)

But i dunno how to make it run successfully

Kindly explain a bit more about this point
# create templates to produce the desired output

Thanks and Regards
R Satheesh

Ekkehard Dörre

Thursday 13 March 2008 6:40:02 am

Hi,

look here:
http://projects.ez.no/ggxmlview

and here:
http://projects.ez.no/ggxmlview/forum/general/xml_design_extension#msg8456

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Satheesh R

Sunday 16 March 2008 9:21:50 pm

Hi Ekkehard Dörre,

Thanks for the reply, i'll try to implement it.

Thanks and Regards
R Satheesh

eZ debug

Timing: Jan 20 2025 17:25:11
Script start
Timing: Jan 20 2025 17:25:11
Module start 'content'
Timing: Jan 20 2025 17:25:12
Module end 'content'
Timing: Jan 20 2025 17:25:12
Script end

Main resources:

Total runtime1.1771 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0106 587.8438180.8125
Module start 'content' 0.01071.0536 768.6563638.2969
Module end 'content' 1.06430.1128 1,406.9531337.3672
Script end 1.1770  1,744.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00860.7314210.0004
Check MTime0.00140.1198210.0001
Mysql Total
Database connection0.00070.056610.0007
Mysqli_queries1.087892.41582020.0054
Looping result0.00180.15232000.0000
Template Total1.147797.520.5738
Template load0.00170.148620.0009
Template processing1.145997.348420.5729
Template load and register function0.00020.018410.0002
states
state_id_array0.00100.086010.0010
state_identifier_array0.00070.062720.0004
Override
Cache load0.00150.1240450.0000
Sytem overhead
Fetch class attribute can translate value0.00150.127740.0004
Fetch class attribute name0.00100.087370.0001
XML
Image XML parsing0.00290.243440.0007
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00990.8405330.0003
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs