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.html [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

