xml diff/patch tool on OpenDocument files

I recently downloaded bunch of StarOffice presentations. I view these on 2nd display and I want them to autoplay. These are XML files. So, I thought I could write XSLT but I'm not good at it. Instead, I thought I could use xml diff tool to apply the change to one file to all other files in batch.



Here are the xml diff/patch tools I tried. The bottom line is: I couldn't make none of these achieve what I want.

  1. xmldiff/xmlrev
    a python tool that figures out the differences between two similar XML files
    It turned out that xmlrev hasn't implemented 'INSERT' yet.
  2. Microsoft XmlDiff
    patch tool checks checksum of original file. So, the patch can be applied to only 1 file.
  3. diffxml - XML Diff and Patch Utilities
    This project aims to provide Open Source XML diff and patch utilities which operate on the hierarchical structure of XML documents.
    This worked for some files but didn't work for files which have a little different structure.
  4. Perl: xupdate - search.cpan.org
    xupdate - Process XUpdate commands over an XML document
    This page explains well. But it didn't work on OpenDocument xml.
  5. another Python tool: 4suite.org
    command-line tool for performing XUpdates on XML documents
    I used the same xupdate output from #1.

So, what will I do next? I'm considering these.
  1. OpenOffice API or macro
  2. Disregard the xml aspect of content.xml file and process it by perl
  3. Use OpenOffice XML tool from here and write XSL
    Xml - OpenOffice.org Wiki
  4. These are the Wiki pages of the OpenOffice.org XML Project
Comments:

I'm the author of diffxml - could you send me the files that didn't work?

Thanks!

Posted by Adrian Mouat on June 18, 2009 at 11:22 AM JST #

Thaks, Adrian. I'm honourd to get your comment. I'm running new tests so please hold.

Posted by Katsumi INOUE on June 22, 2009 at 04:38 AM JST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today