Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » dynamic EMF serializable xml
dynamic EMF serializable xml [message #657825] Fri, 04 March 2011 09:04 Go to next message
robin Missing name is currently offline robin Missing nameFriend
Messages: 16
Registered: November 2009
Junior Member
hi,master Ed marks,
I create model by dynamic EMF to serializable xml.
for example
....
<model name="<test>,test1,test2" >
<event>
js script
</event>
</model>
...

I want <event> js script content use OPTION_ESCAPE_USING_CDATA is true,but <model> name attribute value use OPTION_ESCAPE_USING_CDATA is false.

Can you give me some suggestion?
Thanks.
Re: dynamic EMF serializable xml [message #657909 is a reply to message #657825] Fri, 04 March 2011 14:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26235
Registered: July 2009
Senior Member
Robin,

Please use the eclipse.tools.emf forum/newsgroup for EMF questions.

robin wrote:
> hi,master Ed marks,
> I create model by dynamic EMF to serializable xml.
> for example
> ...
> <model name="<test>,test1,test2" >
> <event>
> js script
> </event>
> </model>
> ..
>
> I want <event> js script content use OPTION_ESCAPE_USING_CDATA is
> true,but <model> name attribute value use OPTION_ESCAPE_USING_CDATA is
> false.
CDATA is used only for element content, not for attribute content, so
this shouldn't be an issue.
>
> Can you give me some suggestion?
> Thanks.
Re: dynamic EMF serializable xml [message #657952 is a reply to message #657909] Fri, 04 March 2011 17:28 Go to previous messageGo to next message
robin Missing name is currently offline robin Missing nameFriend
Messages: 16
Registered: November 2009
Junior Member
Sorry,Ed Mark
I'll use eclipse.tools.emf forum/newsgroup for EMF questions.
I means that how can I escpse some "<" character in <event> node content and no escape "<" character in <model> node attribute value when serializable xml by programmatically?

Thanks
Re: dynamic EMF serializable xml [message #657960 is a reply to message #657952] Fri, 04 March 2011 17:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26235
Registered: July 2009
Senior Member
Robin,

You must escape certainly characters like < in attribute values. XML
requires it.

robin wrote:
> Sorry,Ed Mark
> I'll use eclipse.tools.emf forum/newsgroup for EMF questions.
> I means that how can I escpse some "<" character in <event> node
> content and no escape "<" character in <model> node attribute value
> when serializable xml by programmatically?
>
> Thanks
>
Previous Topic:model autosave
Next Topic:Where can I find RulesPackage.eINSTANCE ?
Goto Forum:
  


Current Time: Thu Nov 27 22:17:49 GMT 2014

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

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