How could I embed formatted XML source in WORD documents?

Posted by eckes on Super User See other posts from Super User or by eckes
Published on 2012-06-04T09:13:19Z Indexed on 2012/06/04 10:44 UTC
Read the original article Hit count: 245

Filed under:
|
|
|

I'm writing a documentation with WORD that contains XML source code (whole files) as examples. The way I'm embedding the currently XML is quite cumbersome and doesn't seem to me as really maintainable:

  • I'm finishing the editing of the document in WORD and create a PDF from it using Acrobat
  • next, I open my XML files (2x input files, 2x generated output files) with IE and print them with the PDF printer supplied by Acrobat
  • now, I open up Acrobat Pro and attach the four XML-PDF files to my original document

The problem with that work flow for me is that it involves too much manual labor in order to get the documentation done.

What I've tried up to now is not really satisfying for me:

  • converting each XML to PDF and appending them like described above
  • opening the XML files with SCiTE, copy as RTF and paste into Word
  • playing around with the LaTeX packages minted, pygments and listings (I could write the docs with LaTeX too) but found some unsolvable problems in each of these packages

I'm searching for a way that produces my documentation more automatic. For example embedding the XML files including formatting of IE (which I find quite readable). The files should be included by reference so that I don't have to paste the XML sources manually every time the XML changes.

© Super User or respective owner

Related posts about microsoft-word

Related posts about pdf