Summary
The DOM 3 Load and Save specification provides standard mechanisms for loading, saving, and filtering XML documents. In this chapter you have learned how to load an XML document, save an XML document or a node to a file or a String, and filter nodes from an XML document. While the DOM 3 Load and Save API is not as simple as the JAXP APIs, the Load and Save API does have some advantages. If any of the advantages of the DOM 3 Load and Save API are required, use the DOM 3 API. Otherwise use the JAXP API. An example of using DOM 3 Load and Save is in an XML Editor (such as JDeveloper's built-in XML Editor) in which an XML document is loaded into the Editor and saved from the Editor. But, it is up to JDeveloper designers to add the DOM 3 Load and Save feature to the XML Editor. A developer won't be able to use DOM 3 Load and Save with JDeveloper's XML Editor directly. In the next chapter we will validate an XML document with an XML schema using the DOM Level 3 Validation API.