Pluggable diff/file comparison algorithms
Are you missing a feature? Request its implementation here.
-
- Posts: 3
- Joined: Thu May 22, 2014 2:30 pm
Pluggable diff/file comparison algorithms
It would be a great feature if you could let users develop their own diff/file comparison algorithms and provide a mechanism for their automatic integration with the rest of the application.
The Diff Files tool will search for the user defined algorithms - it will discover all the implementations of a certain interface on the classpath (I see these algorithms as implementations of a certain interface) - and will give the user the possibility to choose from the list of discovered algorithms the one to be used when performing the diff operation.
The Diff Files tool will search for the user defined algorithms - it will discover all the implementations of a certain interface on the classpath (I see these algorithms as implementations of a certain interface) - and will give the user the possibility to choose from the list of discovered algorithms the one to be used when performing the diff operation.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Pluggable diff/file comparison algorithms
Hi,
Unfortunately the Diff tool/GUI does not expose any API at this time.
We will consider your request in the long term.
Regards,
Adrian
Unfortunately the Diff tool/GUI does not expose any API at this time.
We will consider your request in the long term.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Thu May 22, 2014 2:30 pm
Re: Pluggable diff/file comparison algorithms
Hello,
this is a bit offtopic, but can you please tell me if it is possible to obtain this kind of behavior using a plugin (I plan to write one) which will use parts of the diffFiles application?
I have been studying the plugin developer guide, but it seems to me that in order to obtain this behavior one will have to write a plugin which will contain an entirely new application (the equivalent of the diffFiles)
Thank you for your time
this is a bit offtopic, but can you please tell me if it is possible to obtain this kind of behavior using a plugin (I plan to write one) which will use parts of the diffFiles application?
I have been studying the plugin developer guide, but it seems to me that in order to obtain this behavior one will have to write a plugin which will contain an entirely new application (the equivalent of the diffFiles)
Thank you for your time
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Pluggable diff/file comparison algorithms
Hi,
Due to the lack of public API for Diff, there are no parts of the diffFiles or diffDirs tools that can be used programmatically.
So, the answer is no, it's not possible at this time.
If I may ask, why do you want or need to use other comparison algorithms?
Is it for other (than XML) types of files?
Regards,
Adrian
Due to the lack of public API for Diff, there are no parts of the diffFiles or diffDirs tools that can be used programmatically.
So, the answer is no, it's not possible at this time.
If I may ask, why do you want or need to use other comparison algorithms?
Is it for other (than XML) types of files?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Thu May 22, 2014 2:30 pm
Re: Pluggable diff/file comparison algorithms
Hi,
the pluggable comparision algorithms are for XML files.
Their user will help me ignore the differences in the order of the elements of a file, ignore the presence of an optional attribute, or ignore differences in the cases of attributes values (TRUE vs. True).
Thank you
the pluggable comparision algorithms are for XML files.
Their user will help me ignore the differences in the order of the elements of a file, ignore the presence of an optional attribute, or ignore differences in the cases of attributes values (TRUE vs. True).
Thank you
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Pluggable diff/file comparison algorithms
Hi,
We already have on our issue tracking tool feature requests to provide these possibilities (ignore element, order, optional attribute, cases in values) as options for the diff algorithms.
I'm considering this as a request for these options. I've added a vote and mentioned your comments.
Regards,
Adrian
We already have on our issue tracking tool feature requests to provide these possibilities (ignore element, order, optional attribute, cases in values) as options for the diff algorithms.
I'm considering this as a request for these options. I've added a vote and mentioned your comments.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
Re: Pluggable diff/file comparison algorithms
Hello,
In oXygen XML Editor 18 we added support to ignore nodes using an XPath expression.
An XPath panel was added on the toolbar of the File Comparison tool and in the Compare view in the Syncro SVN Client. You can enter an XPath 2.0 expression to ignore certain nodes when comparing using the XML Fast or XML Accurate algorithms.
Watch this video demonstration to find out more more about "XML Three Way Diff" in Oxygen XML Editor 18:
https://www.youtube.com/watch?v=3wLmNZq ... e=youtu.be
For more details see the "Compare Files" section from our use manual:
http://oxygenxml.com/doc/versions/18.0/ ... son-1.html
Best Regards,
Octavian
In oXygen XML Editor 18 we added support to ignore nodes using an XPath expression.
An XPath panel was added on the toolbar of the File Comparison tool and in the Compare view in the Syncro SVN Client. You can enter an XPath 2.0 expression to ignore certain nodes when comparing using the XML Fast or XML Accurate algorithms.
Watch this video demonstration to find out more more about "XML Three Way Diff" in Oxygen XML Editor 18:
https://www.youtube.com/watch?v=3wLmNZq ... e=youtu.be
For more details see the "Compare Files" section from our use manual:
http://oxygenxml.com/doc/versions/18.0/ ... son-1.html
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service