EMF Serialization/Loading question [message #551562] |
Sat, 07 August 2010 05:32 |
Loic JULIEN Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi,
One of our EMF Attribute contains values with very long strings. Those strings are formatted for correct display in an editor: indentation/new line.
When we trigger the EMF serialization on the owning resource, the following typical processing happens on the formatting:
\t (TAB) is replaced with 	
\n (LF) is replaced with 

1- We would like, in the serialized resource, to preserve the initial formatting for those strings. What would you recommend?
- Wrapping it with CDATA .
- Any side effect you could think of?
- Any better way?
2- Would the serialization aspect be achieved by extending XMISaveImpl. While we may be able to modify the attribute type and get this expressed in the Rose Model, this would have some side effect: code compatibility, resource migration...
I thank you for your answer and expertise.
Thanks,
~Loïc
|
|
|
Powered by
FUDForum. Page generated in 0.01684 seconds