I have enabled indenting on the save tab.  I still do not get the
desired results.  I have attached the original file from our developers
and the one that has been edited by xmlMind.  Can you tell me how to get
the edited file from xmlMind to look like the original?  (Where do I
specify the schema or DTD?)

Thanks,

Patrick

-----Original Message-----
From: Alexander Dupuy [mailto:[email protected]] 
Sent: Wednesday, April 21, 2004 1:00 PM
To: xmleditor-support at xmlmind.com; Patrick Campbell
Subject: [XXE] keeping the xml format

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

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/).

@alex
-- 
mailto:dupuy at sysd.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Original.xml
Type: text/xml
Size: 21720 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040421/0a430e4f/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlMindEdited.xml
Type: text/xml
Size: 15458 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040421/0a430e4f/attachment-0001.xml
 

Reply via email to