Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » OPTION_ESCAPE_USING_CDATA question
OPTION_ESCAPE_USING_CDATA question [message #495745] Thu, 05 November 2009 21:32 Go to next message
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
I set the OPTION_ESCAPE_USING_CDATA to true in my EMF generated editor
for the model and expected that text attributes that needed to be
escaped (and didn't contain the string ']]>') would be wrapped in a
CDATA construct instead of being escaped. That isn't happening. I
validated in debug that the OPTION_ESCAPE_USING_CDATA attribute is set
to true in the options map file at save time.

Have I misinterpreted what OPTION_ESCAPE_USING_CDATA does?
Re: OPTION_ESCAPE_USING_CDATA question [message #495753 is a reply to message #495745] Thu, 05 November 2009 21:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
John,

It only applies to values serialized as elements.


John Yotka wrote:
> I set the OPTION_ESCAPE_USING_CDATA to true in my EMF generated editor
> for the model and expected that text attributes that needed to be
> escaped (and didn't contain the string ']]>') would be wrapped in a
> CDATA construct instead of being escaped. That isn't happening. I
> validated in debug that the OPTION_ESCAPE_USING_CDATA attribute is set
> to true in the options map file at save time.
>
> Have I misinterpreted what OPTION_ESCAPE_USING_CDATA does?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OPTION_ESCAPE_USING_CDATA question [message #498379 is a reply to message #495753] Mon, 16 November 2009 16:57 Go to previous messageGo to next message
Babloo is currently offline BablooFriend
Messages: 12
Registered: September 2009
Junior Member
How do i set value to be an element instead of an attribute?

[Updated on: Mon, 16 November 2009 16:57]

Report message to a moderator

Re: OPTION_ESCAPE_USING_CDATA question [message #498568 is a reply to message #498379] Tue, 17 November 2009 14:27 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060006060004020600050109
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

With extended meta data annotations

XML Schema to Ecore Mapping
< http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf>
Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>


Babloo wrote:
> How do i set value to be an element instead of an attribute?

--------------060006060004020600050109
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
With extended meta data annotations <br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
<a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
</blockquote>
<br>
Babloo wrote:
<blockquote cite="mid:hds09p$ohj$1@build.eclipse.org" type="cite">How
do i set value to be an element instead of an attribute?
<br>
</blockquote>
</body>
</html>

--------------060006060004020600050109--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Constraints in meta-model
Next Topic:Persisting EStructuralFeature
Goto Forum:
  


Current Time: Thu Apr 25 04:25:38 GMT 2024

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

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

Back to the top