Skip to main content



      Home
Home » Modeling » EMF » Free text between tags in XML
Free text between tags in XML [message #1062231] Thu, 06 June 2013 11:44 Go to next message
Eclipse UserFriend
Hello everybody

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.
Example:
<tag>
free text
<tag/>

In the free text, it could be some HTML tags.

Thanks in advance
Re: Free text between tags in XML [message #1062266 is a reply to message #1062231] Thu, 06 June 2013 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Roseline,

Is there a schema for the XML format from which you can generate the EMF
model?

On 06/06/2013 7:40 PM, Roseline Gourinel wrote:
> Hello everybody
>
> 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.
> Example:
> <tag>
> free text
> <tag/>
>
> In the free text, it could be some HTML tags.
>
> Thanks in advance
>
Re: Free text between tags in XML [message #1062386 is a reply to message #1062266] Fri, 07 June 2013 09:28 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

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) ?

I was told an other way is to override the serialization of my output model. Do you agree ?

Re: Free text between tags in XML [message #1062513 is a reply to message #1062386] Sat, 08 June 2013 03:42 Go to previous messageGo to next message
Eclipse UserFriend
Roseline,

Comments below.

On 07/06/2013 3:28 PM, Roseline Gourinel wrote:
> Hello,
>
> 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:
http://www.theserverside.com/news/1364302/Binding-XML-to-Java
>
>
Re: Free text between tags in XML [message #1063606 is a reply to message #1062513] Thu, 13 June 2013 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Hello !

I got the solution just right now !
I spent all my (working) time reading links you gave me.
I found it in your book Wink

In fact I have to use a multiplicity-Many Attribute...

But now I know how to use a xsd, a serialization ...
I have to continue my EMF immersion / training.

Thanks to you !
Re: Free text between tags in XML [message #1802439 is a reply to message #1063606] Fri, 08 February 2019 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Please allow me to pick up this topic after so many years...

Recently I'm looking for an alternative solution for Arbortext XML editor and I'm wondering if Eclipse could be the one.

One thing important to us is that Arbortext XML editor can protect the name of elements defined in DTD file from being changed while editing the content of the XML file -- means you can delete the whole element (with its children) but cannot change the name defined in DTD file, as attached screen snapshot showed.

Can I just change some settings to let Eclipse XML editor works in the same mode? Or Do I have to create a plugin myself to customize it? Thanks.
Re: Free text between tags in XML [message #1802688 is a reply to message #1802439] Thu, 14 February 2019 00:24 Go to previous messageGo to next message
Eclipse UserFriend
The believe the Eclipse XML editor you are referring to is provided by the Web Toolsproject.
Re: Free text between tags in XML [message #1802729 is a reply to message #1802688] Thu, 14 February 2019 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Ed., thanks for the feedback. Do you mean this project (https://www.eclipse.org/webtools/)? And to be more specific, the XML Component of Source Editor? https://www.eclipse.org/webtools/wst/components/xml/overview.html
Re: Free text between tags in XML [message #1802745 is a reply to message #1802729] Thu, 14 February 2019 23:12 Go to previous message
Eclipse UserFriend
Yes, I believe so.
Previous Topic:[CDO]
Next Topic:[EMF Compare] Conflict of Indexes/order
Goto Forum:
  


Current Time: Tue Jul 01 05:29:39 EDT 2025

Powered by FUDForum. Page generated in 0.04122 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top