Formatting Generated Code [message #1809218] |
Thu, 11 July 2019 14:46  |
Eclipse User |
|
|
|
Hello,
I implemented a code generator and the output is a xml file. I would like to have this output formatted. Here is a little example:
Current output (snippet) :
<model xsi:type="...." name="Planned Architecture">
<structureElement xsi:type="..." name="managing_1">
<structureElement xsi:type="..." name="controller_1">
<structureElement xsi:type="..." name="monitor_1">
</structureElement>
</structureElement>
</structureElement>
</model>
Desirable output:
<model xsi:type="..." name="Planned Architecture">
<structureElement xsi:type="..." name="managing_1">
<structureElement xsi:type="..." name="controller_1">
<structureElement xsi:type="..." name="monitor_1">
</structureElement>
</structureElement>
</structureElement>
</model>
I read that IFilePostProcessor should help in my purpose but cannot find enough examples to use it properly.
Regards,
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04350 seconds