Alexander Dupuy wrote:
>> We are using xmlMind for editing files for DocBook and wanted to know 
>> if it is possible to keep the source files in TextPad with the same 
>> formatting, i.e. elements in nested tags.  When we make any changes to 
>> the files in xmlMind, all of this formatting is lost and the tags run 
>> one after the other in streams.  Our developers are used to seeing xml 
>> files with indented nested tags.  We have tried every option on the 
>> options menu, but cannot seem to stop this from happening.  Please help.
> 
> 
> You can enable indented formatting from the Options->Options dialog by 
> checking the Indent box on the Save tab.
> 
> This generates pretty reasonable output whenever the DTD or schema for 
> the document is available.  If it is not (or the document is not valid 
> per the DTD/schema) it may not work too well.
> 
> There are other limitations; indentation within elements that may 
> contain #PCDATA text (such as <para>) will not nest further 
> sub-elements.  This is generally right (you don't really want a line 
> break and indent every time you throw in an <emphasis>) but if you are 
> using lists inside of paragraphs, it gets messy.

This has been much improved recently. Please check this case again 
because, now, I wouldn't call it messy.



> Usually, you can just move the <itemizedlist> or whatever to follow the 
> <para> instead of being inside it (the formatted display is essentially 
> the same in most cases, but this is not always possible.
> 
> If the output of XXE isn't sufficiently pretty for your needs, you may 
> wish to look at automating use of a tool like xmlindent 
> (http://freshmeat.net/projects/xmlindent/).


Reply via email to