
be.ugent.rml.records.XMLRecord Maven / Gradle / Ivy
package be.ugent.rml.records;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
/**
* This class is a specific implementation of a record for XML.
* Every record corresponds with an XML element in a data source.
*/
public class XMLRecord extends Record {
private Node node;
public XMLRecord(Node node) {
this.node = node;
}
/**
* This method returns the objects for a reference (XPath) in the record.
* @param value the reference for which objects need to be returned.
* @return a list of objects for the reference.
*/
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy