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