The Java Platform Java Runtime Environment Data Types Control Statemets Methods Arrays Classes and Objects Inheritance Constructor Interface![]() Interface![]() Interface Example![]() Interfaces and coupling![]() The Java XML package![]() The Java IO Serializable interface![]() Using Interface Packages & Access Modifiers Java Collections Framework | The Java XML packageInterface play an important role in the implementation of plugable appliation platform. The W3C Document Object Model (DOM) is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents (XML). The org.w3c.dom is the corresponding interface definition for Java. The interface allows any conformance DOM parser to be “plug-and-play” into an application. (Also see the javax.xml.parser) javax.xml.parsers.DocumentBuilderFactory bf = DocumentBuilderFactory.newInstance(); javax.xml.parsers.DoucumentBuilder b = bf.newDocumentBuilder(); org.w3c.dom.Document document = b.parse(...); org.w3c.dom.Element root = document.getDocumentElement(); |