Forums / Developer / EzP and XML -> Export data to feed external appi
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 [email protected]
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/
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 ?
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.
Monday 27 September 2004 12:03:15 am
Thanks Björn,
I'm going to try something that way.