1 21 package oracle.toplink.essentials.platform.xml; 23 24 import java.net.URL ; 25 import org.w3c.dom.Document ; 26 import org.w3c.dom.Node ; 27 import org.w3c.dom.NodeList ; 28 import org.w3c.dom.Text ; 29 import org.xml.sax.ErrorHandler ; 30 31 public interface XMLPlatform { 32 33 38 public Document createDocument() throws XMLPlatformException; 39 40 50 public Document createDocumentWithPublicIdentifier(String name, String publicIdentifier, String systemIdentifier) throws XMLPlatformException; 51 52 60 public Document createDocumentWithSystemIdentifier(String name, String systemIdentifier) throws XMLPlatformException; 61 62 67 public boolean isWhitespaceNode(Text text); 68 69 78 public String resolveNamespacePrefix(Node contextNode, String namespacePrefix) throws XMLPlatformException; 79 80 90 public NodeList selectNodesAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException; 91 92 100 public Node selectSingleNodeAdvanced(Node contextNode, String xPath, XMLNamespaceResolver xmlNamespaceResolver) throws XMLPlatformException; 101 102 107 public XMLParser newXMLParser(); 108 109 114 public XMLTransformer newXMLTransformer(); 115 116 124 public boolean validateDocument(Document document, URL xmlSchemaURL, ErrorHandler errorHandler) throws XMLPlatformException; 125 } 126 | Popular Tags |