<?xml version="1.0" encoding="UTF-8"?><rss xmlns:xrl="http://1060.org/xrl" version="2.0"><channel><title>ignore all attributes of an element</title><link>http://www.deltaxml.com/forum/topic/24</link><description>
					Entries: 8 Views: 238</description><generator>1060 NetKernel Standard Edition v2.x.x 1060 Forum v1.0.0</generator><language>en-us</language><ttl>60</ttl><item><title>Hai chrisc</title><link>http://www.deltaxml.com/forum/topic/24</link><guid isPermaLink="true">http://www.deltaxml.com/forum/topic/24</guid><description>&lt;div&gt;Thanks for your support. It works fine now. I am also in need of another help. I would like to know how to ignore an element. I looked out for samples in your site. I got samples only for ignoring some attributes.&lt;br/&gt;&lt;br/&gt;Could you provide me some samples for ignoring an element?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Arul&lt;/div&gt;</description><pubDate>Wed, 25 Jun 2008 15:22:00 GMT</pubDate></item><item><title>re: ignore all attributes of an element</title><link>http://www.deltaxml.com/forum/topic/24</link><guid isPermaLink="true">http://www.deltaxml.com/forum/topic/24</guid><description>&lt;div&gt;There are various settings that control the matching. Looking at this data it appears that you weren't using the enhanced matcher.&lt;br/&gt;&lt;br/&gt;When I run this command:&lt;br/&gt;&lt;table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"&gt;&lt;tr&gt;&lt;td&gt;&lt;div class="forum-code"&gt;&lt;pre&gt;&lt;font size="2"&gt;java -jar /usr/local/DeltaXMLCore-5_0/command.jar compare delta f1.xml f2.xml f12.xml&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;I the following result (using the new &lt;a href="http://www.deltaxml.com/dxml/library/deltav2-format-specification.html" target="_new"&gt;deltaV2 format&lt;/a&gt;):&lt;br/&gt;&lt;br/&gt;&lt;table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"&gt;&lt;tr&gt;&lt;td&gt;&lt;div class="forum-xml"&gt;&lt;div class="xmlverb-default codeblock"&gt;&amp;lt;&lt;span class="xmlverb-element-name"&gt;footnotes&lt;/span&gt;&lt;span class="xmlverb-ns-name"&gt; xmlns:deltaxml&lt;/span&gt;="&lt;span class="xmlverb-ns-uri"&gt;http://www.deltaxml.com/ns/well-formed-delta-v1&lt;/span&gt;"&lt;span class="xmlverb-ns-name"&gt; xmlns:dxa&lt;/span&gt;="&lt;span class="xmlverb-ns-uri"&gt;http://www.deltaxml.com/ns/non-namespaced-attribute&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A!=B&lt;/span&gt;"&amp;gt;&lt;br/&gt;  &amp;lt;&lt;span class="xmlverb-element-name"&gt;footnote&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;alt&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;1&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;id&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;61177&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;label&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;1&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;order&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;2&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;size&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;1&lt;/span&gt;"&amp;gt;&lt;br/&gt;    &amp;lt;&lt;span class="xmlverb-element-name"&gt;para&lt;/span&gt;&amp;gt;&lt;span class="xmlverb-text"&gt;New Footnote&lt;/span&gt;&amp;lt;/&lt;span class="xmlverb-element-name"&gt;para&lt;/span&gt;&amp;gt;&lt;br/&gt;  &amp;lt;/&lt;span class="xmlverb-element-name"&gt;footnote&lt;/span&gt;&amp;gt;&lt;br/&gt;  &amp;lt;&lt;span class="xmlverb-element-name"&gt;footnote&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A!=B&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;alt&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;1&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;id&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;61178&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;order&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;2&lt;/span&gt;" &lt;span class="xmlverb-attr-name"&gt;size&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;1&lt;/span&gt;"&amp;gt;&lt;br/&gt;    &amp;lt;&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributes&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A!=B&lt;/span&gt;"&amp;gt;&lt;br/&gt;      &amp;lt;&lt;span class="xmlverb-element-nsprefix"&gt;dxa&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;label&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A!=B&lt;/span&gt;"&amp;gt;&lt;br/&gt;        &amp;lt;&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributeValue&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A&lt;/span&gt;"&amp;gt;&lt;span class="xmlverb-text"&gt;2&lt;/span&gt;&amp;lt;/&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributeValue&lt;/span&gt;&amp;gt;&lt;br/&gt;        &amp;lt;&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributeValue&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;B&lt;/span&gt;"&amp;gt;&lt;span class="xmlverb-text"&gt;1&lt;/span&gt;&amp;lt;/&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributeValue&lt;/span&gt;&amp;gt;&lt;br/&gt;      &amp;lt;/&lt;span class="xmlverb-element-nsprefix"&gt;dxa&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;label&lt;/span&gt;&amp;gt;&lt;br/&gt;    &amp;lt;/&lt;span class="xmlverb-element-nsprefix"&gt;deltaxml&lt;/span&gt;:&lt;span class="xmlverb-element-name"&gt;attributes&lt;/span&gt;&amp;gt;&lt;br/&gt;    &amp;lt;&lt;span class="xmlverb-element-name"&gt;para&lt;/span&gt; &lt;span class="xmlverb-attr-name"&gt;deltaxml:deltaV2&lt;/span&gt;="&lt;span class="xmlverb-attr-content"&gt;A=B&lt;/span&gt;"&amp;gt;&lt;span class="xmlverb-text"&gt;share report&lt;/span&gt;&amp;lt;/&lt;span class="xmlverb-element-name"&gt;para&lt;/span&gt;&amp;gt;&lt;br/&gt;  &amp;lt;/&lt;span class="xmlverb-element-name"&gt;footnote&lt;/span&gt;&amp;gt;&lt;br/&gt;&amp;lt;/&lt;span class="xmlverb-element-name"&gt;footnotes&lt;/span&gt;&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;This command has the enhanced matcher turned on by default. With this command:&lt;br/&gt;&lt;br/&gt;&lt;table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"&gt;&lt;tr&gt;&lt;td&gt;&lt;div class="forum-code"&gt;&lt;pre&gt;&lt;font size="2"&gt;java -jar /usr/local/DeltaXMLCore-5_0/command.jar compare delta f1.xml f2.xml f12.xml "Enhanced Match 1=false"&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;I get a similar result to the one you posted.&lt;br/&gt;&lt;br/&gt;If you are coding using the API see the feature settings information in the javadoc.&lt;br/&gt;&lt;br/&gt;The enhanced matcher takes note of the PCData in the &amp;lt;para&amp;gt; child elements when aligning the &amp;lt;footnote&amp;gt; elements. There are other ways of aligning the footnotes, one of which is to assign higher priority to certain attributes using deltaxml:keys. Perhaps defining keys based on the id attribute would be appropriate in this case?&lt;br/&gt;&lt;br/&gt;If so this can be achieved with an input XSLT filter which adds the deltaxml:key attribute to each of your footnote elements. Keys are discussed in &lt;a href="http://www.deltaxml.com/dxml/library/how-to-use-keys.html" target="_new"&gt;http://www.deltaxml.com/dxml/library/how-to-use-keys.html&lt;/a&gt; and there is an &lt;a href="http://www.deltaxml.com/free/examples/core-features/keys" target="_new"&gt; interactive example&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;And if you are looking for sample code, including an XSLT filter please see the AddressBook sample program in the release.&lt;br/&gt;&lt;br/&gt;Now the matching is more appropriate, it should then be possible to address any issues with the attributes. You could decide to:&lt;br/&gt;&lt;br/&gt;- remove the label attribute from the result&lt;br/&gt;- use either the A or B values when there is a difference.&lt;br/&gt;&lt;br/&gt;Are any of these appropriate? When you say you want to ignore an attribute change, what are you trying to achieve? We can provide some sample code but we need to understand the requirement a little more.&lt;/div&gt;</description><pubDate>Mon, 23 Jun 2008 12:38:00 GMT</pubDate></item><item><title>ignore all attributes of an element</title><link>http://www.deltaxml.com/forum/topic/24</link><guid isPermaLink="true">http://www.deltaxml.com/forum/topic/24</guid><description>&lt;div&gt;But my problem is totally different.  Please look at this problem I have attached the code also. I have two footnotes and i have deleted one and taking diff xml using deltaxml api. Please look at the code give provide me some samples.&lt;br/&gt; &lt;br/&gt;old xml&lt;br/&gt;&amp;lt;footnote alt="1" id="61177" label="1" order="2" size="1"&amp;gt;   &amp;lt;para&amp;gt;New Footnote&amp;lt;/para&amp;gt; &lt;br/&gt;&amp;lt;/footnote&amp;gt;&lt;br/&gt;&amp;lt;footnote alt="1" id="61178" label="2" order="2" size="1"&amp;gt;   &amp;lt;para&amp;gt;share report&amp;lt;/para&amp;gt;  &lt;br/&gt;&amp;lt;/footnote&amp;gt;&lt;br/&gt;new xml&lt;br/&gt;&amp;lt;footnote alt="1" id="61178" label="1" order="2" size="1"&amp;gt;   &amp;lt;para&amp;gt;share report&amp;lt;/para&amp;gt;  &lt;br/&gt;&amp;lt;/footnote&amp;gt;&lt;br/&gt;diff xml&lt;br/&gt;&amp;lt;footnote id="61177" deltaxml:delta="WFmodify" alt="1" label="1" order="1" size="1"&amp;gt;&lt;br/&gt;    &amp;lt;para deltaxml:delta="WFmodify"&amp;gt;&amp;lt;deltaxml:PCDATAmodify&amp;gt;&amp;lt;deltaxml:PCDATAold&amp;gt;&lt;br/&gt;      New Footnote&amp;lt;/deltaxml:PCDATAold&amp;gt;&lt;br/&gt;&amp;lt;deltaxml:PCDATAnew&amp;gt;share report&amp;lt;/deltaxml:PCDATAnew&amp;gt;&amp;lt;/deltaxml:PCDATAmodify&amp;gt;&amp;lt;/para&amp;gt;&amp;lt;/footnote&amp;gt;&lt;br/&gt;&amp;lt;footnote deltaxml:delta="delete" alt="1" id="61178" label="2" order="2" size="1"&amp;gt;&amp;lt;para&amp;gt;share report.&amp;lt;/para&amp;gt;&amp;lt;/footnote&amp;gt;&lt;br/&gt;&lt;br/&gt;In the above new xml I have deleted one footnote and i want to compare the old and new xml. I have to get the result as first footnote as deleted. But i get the result as modified. For this i fount label  is same for the first element in both xml. So i want to ignore this  I would like to get the xsl file for this and do i have to set this as input filter or output filter. &lt;/div&gt;</description><pubDate>Thu, 19 Jun 2008 15:50:00 GMT</pubDate></item></channel></rss>