<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 30: XML ID dereferencing difference engine</title><link>https://sourceforge.net/p/xmlunit/feature-requests/30/</link><description>Recent changes to 30: XML ID dereferencing difference engine</description><atom:link href="https://sourceforge.net/p/xmlunit/feature-requests/30/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 14 Dec 2014 11:59:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/xmlunit/feature-requests/30/feed.rss" rel="self" type="application/rss+xml"/><item><title>#30 XML ID dereferencing difference engine</title><link>https://sourceforge.net/p/xmlunit/feature-requests/30/?limit=25#5806</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;tracked as &lt;a href="https://github.com/xmlunit/xmlunit/issues/3" rel="nofollow"&gt;https://github.com/xmlunit/xmlunit/issues/3&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Bodewig</dc:creator><pubDate>Sun, 14 Dec 2014 11:59:10 -0000</pubDate><guid>https://sourceforge.net93b9820c56f372da4341acd244b611516b0b24fb</guid></item><item><title>XML ID dereferencing difference engine</title><link>https://sourceforge.net/p/xmlunit/feature-requests/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;We have several cases where the XML ID / IDREF is used to save space for re-used elements. In such cases, the XML IDs are generated local to the XML document and do not have to be equal across documents even though their content is equivalent. For such cases, I subclasses the difference engine to not compare values of attributes with type IDREF directly, but compare the referenced elements instead. &lt;/p&gt;
&lt;p&gt;However, to determine the schema type of an attribute, it is necessary to obtain the Document via a validating parser. Thus, my implementation takes the schema and control XML source on construction, which is not elegant and makes the engine applicable only for XMLs of the given schema. Probably this feature could be better implemented in XMLUnit.&lt;/p&gt;
&lt;p&gt;Also, I added a wrapper for ComparisonController, because the standard Diff takes a DifferenceEngine on construction which cannot be changed afterwards and vice versa. So there does not seem to be a good way to use a subclass of DifferenceEngine with a standard Diff instance, but maybe I overlooked sth. here.&lt;/p&gt;
&lt;p&gt;Sources are attached.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bastian Blankenburg</dc:creator><pubDate>Thu, 07 Jan 2010 16:23:11 -0000</pubDate><guid>https://sourceforge.netd7d70f83f640865db89dc7df29dcca70c4c90e26</guid></item></channel></rss>