You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/jcabi/xml/XML.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,19 @@
51
51
*
52
52
* <p>Implementation of this interface must be immutable and thread-safe.
53
53
*
54
+
* <p> In most cases, you can use the {@link XMLDocument} implementation. It
55
+
* implements all required features and will be sufficient for most practical tasks.
56
+
* The only problem with that implementation is that it uses javax.xml classes under
57
+
* the hood. The issue with the default java implementation is that it only supports
58
+
* XPath 1.0. If you require XPath 2.0 support and beyond, you can use the Saxon
59
+
* implementation of {@link XML} - {@link SaxonDocument}. It is based on the Saxon
60
+
* library and supports XPath 2.0 and higher.
61
+
* You can read more about Java XPath versioning problems in the following threads:
62
+
* <ul>
63
+
* <li><a href="https://stackoverflow.com/questions/6624149/xpath-2-0-for-java-possible">xpath 2.0 for java possible</a></li>
64
+
* <li><a href="https://stackoverflow.com/questions/5802895/does-jdk-6-support-all-features-of-xpath-2-0/5803028#5803028">does JDK 6 support all features of XPath 2.0?</a></li>
0 commit comments