// Path: app/src/main/java/de/mygrades/util/exceptions/ParseException.java
// @SuppressWarnings("unused")
// public class ParseException extends Exception {
// 
//     public ParseException(){
// 
//     }
// 
//     public ParseException(String detailMessage) {
//         super(detailMessage);
//     }
// 
//     public ParseException(String detailMessage, Throwable throwable) {
//         super(detailMessage, throwable);
//     }
// 
//     public ParseException(Throwable throwable) {
//         super(throwable);
//     }
// }


import android.content.Context;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.tidy.Tidy;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import de.mygrades.util.exceptions.ParseException;
package de.mygrades.main.core;







/**
 * Parses String to Documents and evaluates xPath expressions on them.
 */
public class Parser {
    private Context context;

    /**
     * Tidy builder is needed for creating documents out of strings.
     */
    private Tidy tidyBuilder;

    /**
     * XPath evaluates xPath expressions on documents.
     */
    private XPath xPath;

    /**
     * Transformer is needed for converting a node to string.
     */
    private Transformer transformer;

// Path: app/src/main/java/de/mygrades/util/exceptions/ParseException.java
// @SuppressWarnings("unused")
// public class ParseException extends Exception {
// 
//     public ParseException(){
// 
//     }
// 
//     public ParseException(String detailMessage) {
//         super(detailMessage);
//     }
// 
//     public ParseException(String detailMessage, Throwable throwable) {
//         super(detailMessage, throwable);
//     }
// 
//     public ParseException(Throwable throwable) {
//         super(throwable);
//     }
// }


// Path: app/src/main/java/de/mygrades/main/core/Parser.java
import android.content.Context;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.tidy.Tidy;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import de.mygrades.util.exceptions.ParseException;

package de.mygrades.main.core;







/**
 * Parses String to Documents and evaluates xPath expressions on them.
 */
public class Parser {
    private Context context;

    /**
     * Tidy builder is needed for creating documents out of strings.
     */
    private Tidy tidyBuilder;

    /**
     * XPath evaluates xPath expressions on documents.
     */
    private XPath xPath;

    /**
     * Transformer is needed for converting a node to string.
     */
    private Transformer transformer;

    public Parser(Context context) throws ParseException {