Prashant Varshney wrote:
> 
> Thanks for your inputs. Based on them I'm able to create a configuration
> file which appears like this -
> 
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <configuration name="Roamware"
>   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
> 
>   <detect>
>       <or>
>               <rootElementLocalName>sql</rootElementLocalName>
>               <rootElementLocalName>script</rootElementLocalName>
>       </and>
>   </detect>

[1] You have a closing "and" tag for an opening "or" tag.

[2] I doubt that the localnames of your root elements are "sql" or 
"script". If this was the case, why use an XML editor when, anyhow, such 
elements are to be saved as CDATA sections?

If you have a DTD, please base your detect rule

- On the public ID of your DTD. Example:
<dtdPublicId>-//W3C//DTD XHTML 1.0 Strict//EN</dtdPublicId>

- OR on the system ID of your DTD. Example:
<dtdSystemId>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</dtdSystemId>

- OR on the localname of the *actual* root element of your documents.

More info. in 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/detect.html



>   <preserveSpace elements = sql script />

This is malformed XML. Your forgot the quotes around "sql script".



>   <saveOptions encoding="UTF-8" indent="1" addOpenLines="true"
> cdataSectionElements="sql script" saveCharsAsEntityRefs="false" />
> 
>  </configuration>
> 
> I placed it in the folder where my DTD file is present but I see no
> positive result when I open my XML file. Is there any particular
> location where this file needs to be placed? The name of my .xxe file is
> application.xxe which is same as that of my DTD file which is named as
> application.dtd.
> 

It doesn't work like this. Please copy your configuration file to in 
<user_preferences_dir>\addon\, where <user_preferences_dir> is something 
like "C:\Documents and Settings\prashant\Application 
Data\XMLmind\XMLeditor\" on Windows XP.

More info. in 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/lookup_phase.html



---
PS: This level of support is reserved to the customers of XMLmind XML 
Editor Professional Edition.

Reply via email to