[Simple-support] Simple Xml and dynamic ElementListUnion
Brought to you by:
niallg
|
From: PsyKo B. <psy...@gm...> - 2015-12-10 08:58:15
|
Hello, I'm writing an app using a plugin architecture. To perform a save of the project, each plugin will store in a container in the project xml file. The resulting xml will be something like : https://gist.github.com/cncgoko/a70e24383e68d7c85022 The existing plugin is unknown at compile time, so the annotation ElementListUnion cannot be used. The content of the plugin data will be XML and probably use annotation as a standard SimpleXml description. The "owner" attribute of the container will be used to know what plugins will provide the decoding process for the container. I'm pretty used to SimpleXml using annotation (@Attribute, @element,...) for compile time defined xml but I wanted to know if this new case can be achieved ? Is there something out of the box ? If not, can anyone provide at least a clue of the way to do it ? (use Transformer ?..) Thank you, Regards, |