File: apas02.html

package info (click to toggle)
xmlunit 1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,456 kB
  • sloc: java: 11,316; xml: 4,515; makefile: 8; php: 1
file content (82 lines) | stat: -rw-r--r-- 7,769 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>A.2.Changes from XMLUnit 1.1 to 1.2</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="XMLUnit Java User's Guide"><link rel="up" href="apa.html" title="A.Changes"><link rel="prev" href="apa.html" title="A.Changes"><link rel="next" href="apas03.html" title="A.3.Changes from XMLUnit 1.2 to 1.3"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">A.2.Changes from XMLUnit 1.1 to 1.2</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apa.html">Prev</a></td><th width="60%" align="center">A.Changes</th><td width="20%" align="right"><a accesskey="n" href="apas03.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="Changes%201.2"></a>A.2.Changes from XMLUnit 1.1 to 1.2</h3></div></div></div>
      

      <div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="Breaking%20Changes%201.2"></a>A.2.1.Breaking Changes</h4></div></div></div>
        

        <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
            If XMLUnit detects that it cannot match a certain node
            (i.e. it encounters
            a <code class="literal">CHILD_NODE_NOT_FOUND</code>
            kind of difference) the XPath for the "missing" node will
            be null.  It used to be some random XPath of a different node.
          </li><li class="listitem">
            <code class="literal">XMLUnit.setIgnoreDiffBetweenTextAndCDATA</code>
            now also
            sets <code class="literal">DocumentBuilderFactory.setCoalescing</code>.
            This has been done so that whitespace differences can be
            resolved according to the corresponding flags even in the
            presence of CDATA
            sections.  <a class="ulink" href="" target="_top">Issue
            1903923</a>.</li><li class="listitem">
            Two protected methods
            in <code class="literal">SimpleXPathEngine</code> (which you
            shouldn't extend anyway) have added XpathException to
            their throws list.
          </li></ul></div>
      </div>

      <div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="New%20Features%201.2"></a>A.2.2.New Features</h4></div></div></div>
        

        <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">The <code class="literal">SAXParserFactory</code> used
          by <code class="literal">Validator</code> can now be configured
          completely.  <a class="ulink" href="" target="_top">Issue
          1903928</a>.</li><li class="listitem">A new
          class <code class="literal">org.custommonkey.xmlunit.jaxp13.Validator</code>
          can be used to validate schema definitions and schema
          instances using the <code class="literal">javax.xml.validation</code>
          package of JAXP 1.3.  Depending on your JAXP implementation
          this may allow you to validate documents against schema
          definitions written in RELAX NG or other schema languages in
          addition to W3C XML Schema.  See
          <a class="xref" href="ar01s04.html#JAXP%201.3%20Validation" title="4.4.JAXP 1.3 Validation">Section4.4, &#8220;JAXP 1.3 Validation&#8221;</a> for details.</li><li class="listitem"><code class="literal">DifferenceListener</code> can now
          "upgrade" recoverable differences to non-recoverable by
          returning <code class="literal">RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT</code>
          in the <code class="literal">differenceFound</code>
          method.  <a class="ulink" href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1854284&amp;group_id=23187&amp;atid=377771" target="_top">Issue
          1854284</a>.</li><li class="listitem">A new callback
          interface <code class="literal">MatchTracker</code> is now notified on
          successful matches of Nodes.  For more details see
          <a class="xref" href="ar01s03.html#MatchTracker" title="3.6.MatchTracker">Section3.6, &#8220;<code class="literal">MatchTracker</code>&#8221;</a>.  <a class="ulink" href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1860491&amp;group_id=23187&amp;atid=377771" target="_top">Issue
          1860491</a>.</li><li class="listitem">It is now possible to have more control over
          whether the parser expand entity references or not by
          using <code class="literal">XMLUnit.setExpandEntityReferences</code>,
          see <a class="xref" href="ar01s03.html#Entity%20Reference%20Expansion" title="3.8.5.Entity Reference Expansion">Section3.8.5, &#8220;Entity Reference Expansion&#8221;</a>.  <a class="ulink" href="" target="_top">Issue
          1877458</a>.</li><li class="listitem">New examples have been added:
            <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "><li class="listitem"><code class="literal">RecursiveElementNameAndTextQualifier</code>
                - a more flexible <code class="literal">ElementQualifier</code>
                that fills the same need as
                <code class="literal">MultiLevelElementNameAndTextQualifier</code>
                 See
                 <a class="xref" href="ar01s03.html#RecursiveElementNameAndTextQualifier" title="3.4.4.org.custommonkey.xmlunit.examples.RecursiveElementNameAndTextQualifier">Section3.4.4, &#8220;<code class="literal">org.custommonkey.xmlunit.examples.RecursiveElementNameAndTextQualifier</code>&#8221;</a>
                 for more details.</li><li class="listitem"><code class="literal">CaseInsensitiveDifferenceListener</code>
                a - <code class="literal">DifferenceListener</code> that ignores
                case when comparing texts.</li><li class="listitem"><code class="literal">FloatingPointTolerantDifferenceListener</code>
                a - <code class="literal">DifferenceListener</code> that tries
                to parse texts as floating point numbers and compares
                them using a configurable tolerance.</li></ul></div>
          </li></ul></div>
      </div>

      <div class="section"><div class="titlepage"><div><div><h4 class="title"><a name="Bugfixes%201.2"></a>A.2.3.Important Bug Fixes</h4></div></div></div>
        

        <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
            If XMLUnit couldn't match nodes (i.e. it encountered
            a <code class="literal">CHILD_NODE_NOT_FOUND</code> kind of
            difference), the XPath expressions of the node details
            have been random.  <a class="ulink" href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1860681&amp;group_id=23187&amp;atid=377768" target="_top">Issue 1860681</a>.
          </li></ul></div>
      </div>
    </div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apa.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="apa.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="apas03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">A.Changes</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">A.3.Changes from XMLUnit 1.2 to 1.3</td></tr></table></div></body></html>