PDE Templates [message #324653] |
Tue, 29 January 2008 21:36 |
Eclipse User |
|
|
|
I am using the org.eclipse.pde.ui.pluginContent and the
org.eclipse.pde.ui.newExtension extension points to provide templates when
a user is creating a new plugin. As such, I need to write out my own
extension point when the user is finished with the New Plug-in Project
wizard. One of my elements contains text that should be a CDATA node.
For example, this is what I want to save to the plugin.xml:
<myElement>
<![CDATA[
This is my text that needs to be a CDATA node (not evaluated by the parser)
]]>
</myElement>
When I use the IPluginElement.setText() method and include the CDATA
syntax, I get the following in my plugin.xml:
<myElement>
<![CDATA[
This is my text that needs to be a CDATA node (not evaluated by the parser)
]]>
</myElement>
My code looks something like this:
myPluginElement.setText("<![CDATA[This is my text ...]]>");
Am I doing something wrong? Or is there any way to output text and keep
the original CDATA XML syntax?
|
|
|
Powered by
FUDForum. Page generated in 0.03556 seconds