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.Element parseFileUnchecked​(org.w3c.dom.Document document, java.nio.file.Path file)
    Parse a file and return the root element, owned by document.

    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.UncheckedIOException
      Parse a file and return the root element, owned by document.
      Parameters:
      document - The new owner document
      file - The file to be parsed
      Returns:
      A parsed element
      Throws:
      java.io.UncheckedIOException - On errors