XMLBlueprint supports formatting of XML files, with many options. It's
not schema-aware but you can specify which elements in which
namespaces should be formatted or left alone.
Gerben Abbink
XMLBlueprint.com
On Thu, Dec 22, 2011 at 3:48 AM, Murray McDonald
<m(_dot_)mcdonald(_at_)cogeco(_dot_)ca> wrote:
Hi,
I have a some very large XML source files. Each is are currently formatted
as one long string (ie no line breaks).
I need to add some processing instructions at various points in the file but
I don't want to introduce any significant whitespace in the process of doing
so.
I have XMLSpy but it does not seem to be capable of doing a schema-aware
"pretty-print".
A web search seems to indicate that OXygen is capable of doing an
intelligent pretty-print (the information I found is in the context of XHTML
but I assume it's more generalized than that??), however, I can't really
justify buying it just for that.
If needs be, I can write an XSLT to parse a DTD, classify each element as
"inline", "mixed", "block" or "empty" and then do an identity transform
against my XML source files inserting line-breaks and leading tabbing as
required.
I am wondering if anyone else has any other suggestions for me?
Thanks,
Murray
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--