Skip to content

Commit

Permalink
Javadoc update to add @SInCE 1.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Sep 30, 2021
1 parent 89de796 commit 0d1f04a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/org/jsoup/nodes/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,19 +509,20 @@ public boolean is(Evaluator evaluator) {

/**
<b>Beta:</b> find Elements that match the supplied XPath expression.
<p>(This functionality is currently in beta and
is subject to change. Feedback on the API is requested and welcomed!)</p>
<p>(This functionality is currently in beta and is subject to change. Feedback on the API is requested and
welcomed!)</p>
<p>By default, XPath 1.0 expressions are supported. If you would to use XPath 2.0 or higher, you can provide an
alternate XPathFactory implementation:</p>
<ol>
<li>Add the implementation to your classpath. E.g. to use <a href="https://www.saxonica.com/products/products.xml">Saxon-HE</a>, add <a href="https://mvnrepository.com/artifact/net.sf.saxon/Saxon-HE">net.sf.saxon:Saxon-HE</a> to your build.</li>
<li>Add the implementation to your classpath. E.g. to use <a href="https://www.saxonica.com/products/products.xml">Saxon-HE</a>, add <a href="https://mvnrepository.com/artifact/net.sf.saxon/Saxon-HE">net.sf.saxon:Saxon-HE</a> to your build.</li>
<li>Set the system property <code>javax.xml.xpath.XPathFactory:jsoup</code> to the implementing classname. E.g.:<br>
<code>System.setProperty(W3CDom.XPathFactoryProperty, "net.sf.saxon.xpath.XPathFactoryImpl");</code>
<code>System.setProperty(W3CDom.XPathFactoryProperty, "net.sf.saxon.xpath.XPathFactoryImpl");</code>
</li>
</ol>
@param xpath XPath expression
@return matching elements, or an empty list if none match.
@since 1.14.3.
*/
public Elements selectXpath(String xpath) {
return new Elements(NodeUtils.selectXpath(xpath, this, Element.class));
Expand Down

1 comment on commit 0d1f04a

@jhy
Copy link
Owner Author

@jhy jhy commented on 0d1f04a Sep 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Did not expect the git commit title to be corrected to a GitHub user... sorry!)

Please sign in to comment.