File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
xpath-to-xml-xom/src/main/java/com/github/simy4/xpath/xom/spi Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Bugfixes:
2525 - Fix parent resolution issue that may occur in some cases on prepend copy
2626- Dom4J
2727 - Correctly resolve parent for top level element.
28+ - XOM
29+ - Align can handle with what XOM SPI can actually handle.
2830
2931### 1.2.3
3032
Original file line number Diff line number Diff line change 1212import nu .xom .Attribute ;
1313import nu .xom .Document ;
1414import nu .xom .Element ;
15- import nu .xom .Node ;
15+ import nu .xom .ParentNode ;
1616
1717/**
1818 * XOM model navigator extension SPI.
@@ -21,7 +21,7 @@ public class XomNavigatorSpi implements NavigatorSpi {
2121
2222 @ Override
2323 public boolean canHandle (Object o ) {
24- return o instanceof Node ;
24+ return o instanceof ParentNode || o instanceof Attribute ;
2525 }
2626
2727 @ Override
You can’t perform that action at this time.
0 commit comments