How to get pretty-printed XML output

  • Thread starter Michael Chermside
  • Start date
M

Michael Chermside

I searched the archives and found that my exact question had already been
asked, on 8/4/2005 by "James Z." Unfortunately, he received no answers, so
I'm going to try asking it again.

When I use InfoPath to fill out a form the saved xml file is not
"pretty-printed", so it contains some very long lines. I would like to be
able to use a text diff tool to find differences between versions of the
generated xml file, so I need some level of line wrapping so most changes
will occur on different lines.

Is there any way that I can convince InfoPath to save the xml output in a
pretty-printed format? Alternatively, is there a way that I can apply some
sort of transform of my own to the output before generating it so that the
saved file is pretty-printed?

If you know that the answer is "no, it's not possible today" that's just as
useful to me as a solution, because then I can start seeking alternative
products instead.
 
M

Michael Chermside

Greg:

Thanks for your response. I've done a good deal of digging and
experimentation and have come up with no way of doing this directly. Opening
in a second application and re-saving WILL work, but if a user *ever*
forgets, it will destroy all useful diff history, so I think it's too risky
for my purposes. Thus I think I will probably need to give up on using
InfoPath and instead write a custom program for entering the data for my
form. It's too bad, because it's such a simple feature to be missing.

-- Michael Chermside
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top