I'm sorry I was not able to reproduce the problem you report.
Both <newElementContent addChildElements="none"/> and <newElementContent 
addChildElements="firstChoice"/> work fine.

I think that there is a big misunderstanding here.

When you add:
---
<newElementContent addChildElements="none"/>
---
to XXE_install_dir/config/configuration/configuration.xxe, you tell XXE 
to change its behaviour *when you use it to edit configuration files* 
(which, after all, are XML files just like DocBook, XHTML, etc), but 
*this does not apply to DocBook, XHTML, Slides or your custom DTD*.

If you want to change the behaviour of XXE when editing DocBook, you 
need to add <newElementContent addChildElements="none"/> or 
<newElementContent addChildElements="firstChoice"/> to 
XXE_install_dir/config/docbook/docbook.xxe

If you want to change the behaviour of XXE when editing XHTML, you need 
to add <newElementContent addChildElements="none"/> or 
<newElementContent addChildElements="firstChoice"/> to 
XXE_install_dir/config/xhtml/xhtml.xxe

Etc.

Stephane Mottelet wrote:
> Hussein Shafie wrote:
>> This option works as expected but may be useful only for a few XML data
> 
> 
> No. I have attached to this e-mail my configuration file.
> 
> it does not work.;  XXE still inserts some child elements. Moreover,
> changing the order of declaration in the DTD does not change the type
> of the element which is automatically inserted.
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <configuration name="XMLMind XML Editor Configuration"
> xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/configuration 
>                     xsd/configuration.xsd"
> xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
> xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   <detect>
>     
> <rootElementNamespace>http://www.xmlmind.com/xmleditor/schema/configuration</rootElementNamespace>
>   </detect>
> 
>   <schema>
>     <location>http://www.xmlmind.com/xmleditor/schema/configuration 
>               xsd/configuration.xsd</location>
>   </schema>
> 
>   <css location="css/configuration.css" name="XML data" />
> 
>   <template location="template/template.xml" name="Template" />
> 
>   <saveOptions favorInteroperability="false" />
> 
>   <!-- Localize here ===================================================== -->
> 
>   <localize languages="en fr">
>     <message>
>       <text>XMLMind XML Editor Configuration</text>
>       <text>Configuration XMLMind XML Editor</text>
>     </message>
>     <message>
>       <text>Template</text>
>       <text>Mod?le</text>
>     </message>
>   </localize>
> 
>   <newElementContent addChildElements="none"/>
> 
> </configuration>
> 
> 
> ------------------------------------------------------------------------


Reply via email to