Package com.io7m.minisite.core.internal
Class MinXMLParse
java.lang.Object
com.io7m.minisite.core.internal.MinXMLParse
public final class MinXMLParse
extends java.lang.Object
Terse functions to parse XML files.
-
Method Summary
Modifier and Type Method Description static org.w3c.dom.ElementparseFileUnchecked(org.w3c.dom.Document document, java.nio.file.Path file)Parse a file and return the root element, owned bydocument.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
parseFileUnchecked
public static org.w3c.dom.Element parseFileUnchecked(org.w3c.dom.Document document, java.nio.file.Path file) throws java.io.UncheckedIOExceptionParse a file and return the root element, owned bydocument.- Parameters:
document- The new owner documentfile- The file to be parsed- Returns:
- A parsed element
- Throws:
java.io.UncheckedIOException- On errors
-