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.

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
-----------
-- 
        Mike Maxwell
        [email protected]
        "My definition of an interesting universe is
        one that has the capacity to study itself."
         --Stephen Eastmond
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to