in reply to Re: To Read and Edit docx files in Windows 7
in thread To Read and Edit docx files in Windows 7

Thanks for the reply Laurent. I am using MS office 2010. I need to read and edit from .Docx files. As you told about edit XML files, I am not familiar with that. any Example or reference to work on .docx files would be of great help.
  • Comment on Re^2: To Read and Edit docx files in Windows 7

Replies are listed 'Best First'.
Re^3: To Read and Edit docx files in Windows 7
by Laurent_R (Canon) on Dec 10, 2014 at 13:33 UTC
    I've just created a short Word document called December_12.docx and copied it on a Unix platform. Then made a copy of it called December_12.zip. Then, unzipping it shows this:
    $cp December_12.docx December_12.zip $unzip December_12.zip Archive: December_12.zip inflating: [Content_Types].xml inflating: _rels/.rels inflating: word/_rels/document.xml.rels inflating: word/document.xml inflating: word/theme/theme1.xml inflating: word/settings.xml inflating: word/webSettings.xml inflating: word/stylesWithEffects.xml inflating: docProps/core.xml inflating: word/styles.xml inflating: word/fontTable.xml inflating: docProps/app.xml
    Now you could in principle edit the word/document.xml document, except that the XML looks quite messy: The content of the Word document was only these two lines:
    December 12, 2014. The quick brown fox jumps over the lazy dog.
      Thanks for the Sample Laurent. Any way to Extract the Content from XML file through Perl Script? In your Example, How to Extract only "The quick brown fox jumps over the lazy dog" through the perl Script from the messy XML file. Even if its a Table, whether we able to read in XML?