I am looking for an implementation of org.w3c.dom.Node for data types other than XML, like json or avro. This will allow me to reuse functionalities written against org.w3c.dom.Node, such as xpath.
org.w3c.dom.Node document = new JsonDocument(myJsonMessage);
XPathFactory xpathFactory = XPathFactory.newInstance();
XPath xpath = xpathFactory.newXPath();
String msg = xpath.evaluate("/document/element", document);
msg is an evaluation of xpath against a json document, provided I have an implementation of Node/Document for Json.
 
     
    