Fórumok

Generating dynamic content XML externally to Liferay

Miguel Expósito, módosítva 13 év-val korábban

Generating dynamic content XML externally to Liferay

New Member Bejegyzés: 1 Csatlakozás dátuma: 2010.08.12. Legújabb bejegyzések
Hi all:

I'm pretending to create an XML file with some content generated automatically in a distinct manner as Liferay does (e.g, with a simple XML editor) and then loading it into 'content' field of a previously existing record in table JournalArticle. The content could look like this:

<?xml version="1.0" encoding="UTF-8"?>
<root>
<dynamic-element instance-id="40GePL5X" name="title" type="text" index-type="">
<dynamic-content><![CDATA[Some test text]]></dynamic-content>
</dynamic-element>
</root>

What does 'instance-id' field refer to and how could it be externally generated (if possible)? (sorry if this is a trivial or previously resolved issue, but I couldn't find any reference in doc, although perhaps my search was not good enough).

My reasons to do this: it's so much faster to me to create the XML file with an editor and then loading it into Liferay than creating it using Liferay user interface...

Thanks for your help.