Hi Hussein, 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> <preserveSpace elements = 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. Am I doing something wrong? Please help. Thanks and Regards, Prashant Varshney -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Wednesday, February 06, 2008 7:06 PM To: Prashant Varshney Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] Formatting of contents in CDATA is lost. Prashant Varshney wrote: > > I'm new to XMLMind and has downloaded the personal edition for > evaluation. I'm facing two problems apart from that I like the tool very > much. > > > > The problems are as follows - > > > > 1) I've lots of CDATA and PCDATA in my XML. The editor removes all > the formatting while displaying as well as while saving the file. For > example in one of my CDATA, I've written JavaScript code. When I open > the XML in the editor I see that the entire formatting of the code is lost. > > 2) In my XML within CDATA there are SQL queries mentioned. If > there is < or > sign in the query, the editor replaces them with the > < or > > > > > How can I resolve these two problems? I'm sure there will be some > options which I'm missing setting those will help me make the editor in > a better way. > > I'm affraid that these problems cannot be solved without writing a simple *configuration* *file* for XMLmind XML Editor. See "Writing a configuration file for XXE" http://www.xmlmind.com/xmleditor/_distrib/doc/configure/configure.html This configuration file should have a name attribute and should contain at least 3 configuration elements: [1] A "detect" configuration element which specifies the class of documents for which the configuration file should be used. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/detect.html [2] A "preserveSpace" configuration element which, in absence of standard attribute "xml:space", specifies the elements where whitespace should be preserved. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/preserveSpace.ht ml [3] A "saveOptions" configuration element which, among other features, may be used to specify which elements should be saved as CDATA sections. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/saveOptions.html

