|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.styledxmlparser.jsoup.nodesas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
Sets the charset used in this document. This method is equivalent to OutputSettings.charset(Charset) but in addition it updates the charset / encoding element within the document.This enables meta charset update.
If there's no element with charset / encoding information yet it will be created. Obsolete charset / encoding definitions are removed!
Elements used:
@param charset Charset @see #updateMetaCharsetElement(boolean) @see OutputSettings#charset(java.nio.charset.Charset)
- Html:
<- Xml:
Find elements that have attributes whose values match the supplied regular expression. @param key name of the attribute @param regex regular expression to match against attribute values. You can use embedded flags (such as (?i) and (?m) to control regex options. @return elements that have attributes matching this regular expressionClass Element, Elements getElementsMatchingOwnText(String)
Find elements whose text matches the supplied regular expression. @param regex regular expression to match text against. You can use embedded flags (such as (?i) and (?m) to control regex options. @return elements matching the supplied regular expression. @see Element#ownText()Class Element, Elements getElementsMatchingText(String)
Find elements whose text matches the supplied regular expression. @param regex regular expression to match text against. You can use embedded flags (such as (?i) and (?m) to control regex options. @return elements matching the supplied regular expression. @see Element#text()Class Element, List
Get this element's child text nodes. The list is unmodifiable but the text nodes may be manipulated.This is effectively a filter on .childNodes() to get Text nodes. @return child text nodes. If this element has no text nodes, returns an empty list.
For example, with the input HTML: {@code
One Two Three
} with the {@code p} element selected:
Four
- {@code p.text()} = {@code "One Two Three Four"}
- {@code p.ownText()} = {@code "One Three Four"}
- {@code p.children()} = {@code Elements[,
]}- {@code p.childNodes()} = {@code List
["One ", , " Three ",
, " Four"]}- {@code p.textNodes()} = {@code List
["One ", " Three ", " Four"]}