Skip to content

Commit 81b7b76

Browse files
feat(#213): Expand XML javadoc description
1 parent ae7379e commit 81b7b76

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/java/com/jcabi/xml/XML.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@
5151
*
5252
* <p>Implementation of this interface must be immutable and thread-safe.
5353
*
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>
65+
* </ul>
66+
*
5467
* @see XMLDocument
5568
* @since 0.1
5669
* @checkstyle AbbreviationAsWordInNameCheck (5 lines)

0 commit comments

Comments
 (0)