|Free text between tags in XML [message #1062231]
||Thu, 06 June 2013 11:44
| Roseline Gourinel
Registered: June 2013
I have to generate from an EMF model, a XML document. But the output format is already defined.
I wanted to know if it is possible to generate a xml file with free text between tags.
In the free text, it could be some HTML tags.
Thanks in advance
|Re: Free text between tags in XML [message #1062513 is a reply to message #1062386]
||Sat, 08 June 2013 03:42
| Ed Merks
Registered: July 2009
On 07/06/2013 3:28 PM, Roseline Gourinel wrote:
> Thank you for your quickly response ...
> Actually, I have to extract my own EMF model into a document with
> several formats (pdf, word, ...).
> We chose to use Arbortext XML (and then the target format via this
> tool) because already used in the company.
> I have to investigate for Arbortext schemas. I am not sure to find one
> because this is a close product. I will search ...
> Then, if I well understand, I can importe it into an emf model and
> then the conversion will be easier (EMF model to EMF model) ?
Yes, then it will be automatic.
> I was told an other way is to override the serialization of my output
> model. Do you agree ?
Yes it's always possible to write your own ResourceImpl or to derive
from the parts uses by XMLResourceImpl.
For the use case you mention specifically, the XMLType package's AnyType
is good for capturing arbitrary XML content. You could have a look at
this for more details:
Powered by FUDForum
. Page generated in 0.01743 seconds