The full story is that I’m exporting a table within ms-access 2007 as an xml file (schema and data). The problem I’m having is with the following element:
<dataroot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" generated="2011-05-03T12:15:15">
The generated=... bit changes every time regardless. Is it possible to get SVN to ignore this attribute of the element. Or is there a better way altogether?
Because of this timestamp every time I export the table as an xml file SVN detects a change even if the structure or data of the table hasn’t changed.
You could write yourself a short (VBA) program which does the XML export programmatically (look here http://msdn.microsoft.com/en-us/library/aa221224%28v=office.11%29.aspx) and removes the
generatedattribute afterwards, using the MS Xml Parser (for example, look here: How to parse XML using vba).But if your MS-Access DB is part of you SVN repository, and you have a program which automatically exports a table as XML from there, then perhaps you can avoid putting those XML file into the repository at all. Just run that program whenever you need an actual version of your XML file.