Forums / Developer / EzP and XML -> Export data to feed external appi

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 X

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.

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 X

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.

laurent le cadet

Monday 27 September 2004 12:03:15 am

Thanks Björn,

I'm going to try something that way.

Laurent.