diff --git a/src/main/java/sirius/kernel/xml/XMLReader.java b/src/main/java/sirius/kernel/xml/XMLReader.java index a52e7cd4..f7c29442 100644 --- a/src/main/java/sirius/kernel/xml/XMLReader.java +++ b/src/main/java/sirius/kernel/xml/XMLReader.java @@ -38,11 +38,11 @@ import java.util.function.Function; /** - * A combination of DOM and SAX parser which permits to parse very large XML files while conveniently handling sub tree + * A combination of DOM and SAX parser which permits to parse very large XML files while conveniently handling subtree * using a DOM and xpath api. *
* Used SAX to parse a given XML file. A set of {@link NodeHandler} objects can be given, which get notified if - * a sub-tree below a given tag was parsed. This sub-tree is available as DOM and can conveniently be processed + * a subtree below a given tag was parsed. This subtree is available as DOM and can conveniently be processed * using xpath. */ public class XMLReader extends DefaultHandler { @@ -57,7 +57,7 @@ public class XMLReader extends DefaultHandler { /** * Creates a new XMLReader. *
- * Use {@link #addHandler(String, NodeHandler)} tobind handlers to tags and then call one of the parse + * Use {@link #addHandler(String, NodeHandler)} to bind handlers to tags and then call one of the parse * methods to process the XML file. *
* To interrupt processing use {@link TaskContext#cancel()}. @@ -136,7 +136,7 @@ public void startElement(String uri, String localName, String name, Attributes a * Registers a new handler for a qualified name of a node. *
* Note that this can be either the node name itself or it can be the path to the node separated by - * "/". Therefore <foo><bar> would be matched by bar and by foo/bar, where + * "/". Therefore, <foo><bar> would be matched by bar and by foo/bar, where * the path always has precedence over the single node name. *
* Handlers are invoked after the complete node was read. Namespaces are ignored for now which eases @@ -144,7 +144,7 @@ public void startElement(String uri, String localName, String name, Attributes a * could be easily added by replacing String with QName here. * * @param name the qualified name of the tag which should be parsed and processed - * @param handler the NodeHandler used to process the parsed DOM sub-tree + * @param handler the NodeHandler used to process the parsed DOM subtree */ public void addHandler(String name, NodeHandler handler) { handlers.put(name, handler); @@ -162,7 +162,7 @@ public void parse(InputStream stream) throws IOException { } /** - * Used to handle the an abort via {@link TaskContext} + * Used to handle an abort via {@link TaskContext} */ static class UserInterruptException extends RuntimeException {