Skip to content

Commit 1148f9d

Browse files
committed
XOM. Align can handle with what SPI can actually handle.
1 parent d6023d6 commit 1148f9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

xpath-to-xml-xom/src/main/java/com/github/simy4/xpath/xom/spi/XomNavigatorSpi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import nu.xom.Attribute;
1313
import nu.xom.Document;
1414
import 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

0 commit comments

Comments
 (0)