On 08/19/2011 10:17 PM, Mike Maxwell wrote: > On 8/19/2011 4:47 AM, Hussein Shafie wrote: >> I'm sorry but XMLmind XML Editor has not been designed with the idea of >> editing XML files at the *physical* level, therefore this feature is >> almost certainly very difficult to implement. > > In our team, our DocBook files are edited by people who prefer to use > XXE. But I occasionally need to look at them, mostly to debug why some > table is not PDFing nicely, and I prefer to use a text editor for some > purposes. I usually find myself re-formatting rows of the table so I > can understand the structure (fortunately, I finally found my > programer's editor's pretty-print for XML). One particularly > frustrating problem is that XXE has the habit of inserting newlines > between a tag name and its attributes, giving me an incomprehensible > mish-mash of stuff.
We are a bit surprised by what you describe. Please make sure to check "Indent" in Options|Preference, Save section. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/saveOptions.html > > The open source xmllint program has the capability of pretty-printing > XML in more or less the format I prefer: > xmllint --format foo.xml > What if XXE passed its output through xmllint each time it saved the > file? My impression is that xmllint is pretty quick: > ----------- > > wc Adjectives.ch.xml > 5868 9194 235371 Adjectives.ch.xml > > xmllint --format --timing Adjectives.ch.xml> /dev/null > Parsing took 5 ms > Saving took 2 ms > Freeing took 0 ms > ----------- XXE is XML-schema aware (whatever the kind of schema) and as such, will never insert indentation (that is, whitespace) into locations where characters are significant. This leads to XML save files which are not as nice looking as they could be when this constraint is not respected. However, we consider that XML save files created by XXE looks good enough (when option "Indent" is checked, of course). -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

